Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.99 KB | None | 0 0
  1. server {
  2.     server_name admitriy.club www.admitriy.club;
  3.     charset off;
  4.     index index.php index.html;
  5.     disable_symlinks if_not_owner from=$root_path;
  6.     include /etc/nginx/vhosts-includes/*.conf;
  7.     include /etc/nginx/vhosts-resources/admitriy.club/*.conf;
  8.     ssi on;
  9.     return 301 https://$host:443$request_uri;
  10.     set $root_path /var/www/altercpa/data/www/admitriy.club;
  11.     root $root_path;
  12.     location / {
  13.         location ~ [^/]\.ph(p\d*|tml)$ {
  14.             try_files /does_not_exists @php;
  15.         }
  16.     }
  17.     location @php {
  18.         fastcgi_index index.php;
  19.         fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@admitriy.club";
  20.         fastcgi_pass unix:/var/www/php-fpm/altercpa.sock;
  21.         fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  22.         try_files $uri =404;
  23.         include fastcgi_params;
  24.     }
  25.     access_log off;
  26.     error_log /dev/null crit;
  27.     listen 62.212.86.184:80;
  28. }
  29. server {
  30.     server_name admitriy.club www.admitriy.club;
  31.     ssl_certificate "/var/www/httpd-cert/altercpa/admitriy.club_le2.crt";
  32.     ssl_certificate_key "/var/www/httpd-cert/altercpa/admitriy.club_le2.key";
  33.     ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
  34.     ssl_prefer_server_ciphers on;
  35.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  36.     ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  37.     charset off;
  38.     index index.php index.html;
  39.     disable_symlinks if_not_owner from=$root_path;
  40.     include /etc/nginx/vhosts-includes/*.conf;
  41.     include /etc/nginx/vhosts-resources/admitriy.club/*.conf;
  42.     ssi on;
  43.     set $root_path /var/www/altercpa/data/www/admitriy.club;
  44.     root $root_path;
  45.     location / {
  46.         location ~ [^/]\.ph(p\d*|tml)$ {
  47.             try_files /does_not_exists @php;
  48.         }
  49.     }
  50.     location @php {
  51.         fastcgi_index index.php;
  52.         fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@admitriy.club";
  53.         fastcgi_pass unix:/var/www/php-fpm/altercpa.sock;
  54.         fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  55.         try_files $uri =404;
  56.         include fastcgi_params;
  57.     }
  58.     access_log off;
  59.     error_log /dev/null crit;
  60.     listen 62.212.86.184:443 ssl;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement