Advertisement
Guest User

Untitled

a guest
Nov 11th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 3.22 KB | None | 0 0
  1. server {
  2.     server_name business.platonfinance.com www.business.platonfinance.com;
  3.     charset UTF-8;
  4.     index index.html index.php;
  5.     disable_symlinks if_not_owner from=$root_path;
  6.     include /etc/nginx/vhosts-includes/*.conf;
  7.     include /etc/nginx/vhosts-resources/business.platonfinance.com/*.conf;
  8.     access_log /var/www/httpd-logs/business.platonfinance.com.access.log;
  9.     error_log /var/www/httpd-logs/business.platonfinance.com.error.log notice;
  10.     ssi on;
  11.     set $root_path /var/www/finance1/data/www/business.platonfinance.com;
  12.     root $root_path;
  13.     location / {
  14.       proxy_set_header X-Real-IP $remote_addr;
  15.       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  16.       proxy_set_header Host $http_host;
  17.       proxy_set_header X-NginX-Proxy true;
  18.  
  19.       proxy_pass http://localhost:3007;
  20.       proxy_redirect off;
  21.  
  22.       proxy_http_version 1.1;
  23.       proxy_set_header Upgrade $http_upgrade;
  24.       proxy_set_header Connection "upgrade";
  25.       proxy_cache_bypass $http_upgrade;
  26.  
  27.         location ~ [^/]\.ph(p\d*|tml)$ {
  28.             try_files /does_not_exists @php;
  29.         }
  30.     }
  31.     location @php {
  32.         fastcgi_index index.php;
  33.         fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@business.platonfinance.com";
  34.         fastcgi_pass unix:/var/www/php-fpm/finance1.sock;
  35.         fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  36.         try_files $uri =404;
  37.         include fastcgi_params;
  38.     }
  39.     listen 5.45.117.133:80;
  40.     listen [2a03:f480:1:1d::e4]:80;
  41. }
  42. server {
  43.     server_name business.platonfinance.com www.business.platonfinance.com;
  44.     ssl_certificate "/var/www/httpd-cert/finance1/PlatonFinance.crtca";
  45.     ssl_certificate_key "/var/www/httpd-cert/finance1/PlatonFinance.key";
  46.     ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
  47.     ssl_prefer_server_ciphers on;
  48.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  49.     ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  50.     charset UTF-8;
  51.     index index.html index.php;
  52.     disable_symlinks if_not_owner from=$root_path;
  53.     include /etc/nginx/vhosts-includes/*.conf;
  54.     include /etc/nginx/vhosts-resources/business.platonfinance.com/*.conf;
  55.     access_log /var/www/httpd-logs/business.platonfinance.com.access.log;
  56.     error_log /var/www/httpd-logs/business.platonfinance.com.error.log notice;
  57.     ssi on;
  58.     set $root_path /var/www/finance1/data/www/business.platonfinance.com;
  59.     root $root_path;
  60.     location / {
  61.       proxy_set_header X-Real-IP $remote_addr;
  62.       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  63.       proxy_set_header Host $http_host;
  64.       proxy_set_header X-NginX-Proxy true;
  65.  
  66.       proxy_pass http://localhost:3007;
  67.       proxy_redirect off;
  68.  
  69.       proxy_http_version 1.1;
  70.       proxy_set_header Upgrade $http_upgrade;
  71.       proxy_set_header Connection "upgrade";
  72.       proxy_cache_bypass $http_upgrade;
  73.  
  74.         location ~ [^/]\.ph(p\d*|tml)$ {
  75.             try_files /does_not_exists @php;
  76.         }
  77.     }
  78.     location @php {
  79.         fastcgi_index index.php;
  80.         fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@business.platonfinance.com";
  81.         fastcgi_pass unix:/var/www/php-fpm/finance1.sock;
  82.         fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  83.         try_files $uri =404;
  84.         include fastcgi_params;
  85.     }
  86.     listen [2a03:f480:1:1d::e4]:443 ssl;
  87.     listen 5.45.117.133:443 ssl;
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement