Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. server {
  2. server_name replicano.ru.com www.replicano.ru.com;
  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/replicano.ru.com/*.conf;
  8. access_log /var/www/httpd-logs/replicano.ru.com.access.log;
  9. error_log /var/www/httpd-logs/replicano.ru.com.error.log notice;
  10. ssi on;
  11. set $root_path /var/www/replicano_ru_com/data/www/replicano.ru.com;
  12. root $root_path;
  13. return 301 https://$host:443$request_uri;
  14. location / {
  15. location ~ [^/]\.ph(p\d*|tml)$ {
  16. try_files /does_not_exists @php;
  17. }
  18.  
  19. try_files $uri $uri/ /index.php?$args;
  20. }
  21. location @php {
  22. fastcgi_index index.php;
  23. fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@replicano.ru.com";
  24. fastcgi_pass unix:/var/www/php-fpm/replicano_ru_com.sock;
  25. fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  26. fastcgi_buffer_size 32k;
  27. fastcgi_buffers 4 32k;
  28. try_files $uri =404;
  29. include fastcgi_params;
  30. }
  31. listen 185.43.220.151:80;
  32. }
  33. server {
  34. server_name replicano.ru.com www.replicano.ru.com;
  35. ssl_certificate "/var/www/httpd-cert/replicano_ru_com/replicano.ru.com_le1.crtca";
  36. ssl_certificate_key "/var/www/httpd-cert/replicano_ru_com/replicano.ru.com_le1.key";
  37. ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
  38. ssl_prefer_server_ciphers on;
  39. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  40. add_header Strict-Transport-Security "max-age=31536000;";
  41. ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  42. charset off;
  43. index index.php index.html;
  44. disable_symlinks if_not_owner from=$root_path;
  45. include /etc/nginx/vhosts-includes/*.conf;
  46. include /etc/nginx/vhosts-resources/replicano.ru.com/*.conf;
  47. access_log /var/www/httpd-logs/replicano.ru.com.access.log;
  48. error_log /var/www/httpd-logs/replicano.ru.com.error.log notice;
  49. ssi on;
  50. set $root_path /var/www/replicano_ru_com/data/www/replicano.ru.com;
  51. root $root_path;
  52. location / {
  53. location ~ [^/]\.ph(p\d*|tml)$ {
  54. try_files /does_not_exists @php;
  55. }
  56.  
  57. try_files $uri $uri/ /index.php?$args;
  58. }
  59. location @php {
  60. fastcgi_index index.php;
  61. fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@replicano.ru.com";
  62. fastcgi_pass unix:/var/www/php-fpm/replicano_ru_com.sock;
  63. fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  64. fastcgi_buffer_size 32k;
  65. fastcgi_buffers 4 32k;
  66. try_files $uri =404;
  67. include fastcgi_params;
  68. }
  69. listen 185.43.220.151:443 ssl;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement