Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name business.platonfinance.com www.business.platonfinance.com;
- charset UTF-8;
- index index.html index.php;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/business.platonfinance.com/*.conf;
- access_log /var/www/httpd-logs/business.platonfinance.com.access.log;
- error_log /var/www/httpd-logs/business.platonfinance.com.error.log notice;
- ssi on;
- set $root_path /var/www/finance1/data/www/business.platonfinance.com;
- root $root_path;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://localhost:3007;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_cache_bypass $http_upgrade;
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@business.platonfinance.com";
- fastcgi_pass unix:/var/www/php-fpm/finance1.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- try_files $uri =404;
- include fastcgi_params;
- }
- listen 5.45.117.133:80;
- listen [2a03:f480:1:1d::e4]:80;
- }
- server {
- server_name business.platonfinance.com www.business.platonfinance.com;
- ssl_certificate "/var/www/httpd-cert/finance1/PlatonFinance.crtca";
- ssl_certificate_key "/var/www/httpd-cert/finance1/PlatonFinance.key";
- ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
- ssl_prefer_server_ciphers on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
- charset UTF-8;
- index index.html index.php;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/business.platonfinance.com/*.conf;
- access_log /var/www/httpd-logs/business.platonfinance.com.access.log;
- error_log /var/www/httpd-logs/business.platonfinance.com.error.log notice;
- ssi on;
- set $root_path /var/www/finance1/data/www/business.platonfinance.com;
- root $root_path;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://localhost:3007;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_cache_bypass $http_upgrade;
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@business.platonfinance.com";
- fastcgi_pass unix:/var/www/php-fpm/finance1.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- try_files $uri =404;
- include fastcgi_params;
- }
- listen [2a03:f480:1:1d::e4]:443 ssl;
- listen 5.45.117.133:443 ssl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement