Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.55 KB | None | 0 0
  1. server {
  2. server_name ph-crm.agensus.ru ;
  3. ssl_certificate "/var/www/httpd-cert/ph/ph-crm.agensus.ru_le1.crtca";
  4. ssl_certificate_key "/var/www/httpd-cert/ph/ph-crm.agensus.ru_le1.key";
  5. ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
  6. ssl_prefer_server_ciphers on;
  7. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  8. ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  9. charset UTF-8;
  10. index index.php index.html;
  11. disable_symlinks if_not_owner from=$root_path;
  12. include /etc/nginx/vhosts-includes/*.conf;
  13. include /etc/nginx/vhosts-resources/ph-crm.agensus.ru/*.conf;
  14. access_log /var/www/httpd-logs/ph-crm.agensus.ru.access.log;
  15. error_log /var/www/httpd-logs/ph-crm.agensus.ru.error.log notice;
  16. ssi on;
  17. set $root_path /var/www/ph/data/www/ph-crm.agensus.ru;
  18. root $root_path;
  19. gzip on;
  20. gzip_comp_level 5;
  21. gzip_disable "msie6";
  22. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
  23. location /api {
  24.        try_files $uri /index.php$is_args$args;
  25.     }
  26.  
  27.  
  28. location / {
  29. location ~ [^/]\.ph(p\d*|tml)$ {
  30. try_files /does_not_exists @php;
  31. }
  32. location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
  33. expires 7d;
  34. }
  35. }
  36. location @php {
  37. try_files $uri =404;
  38. include fastcgi_params;
  39. fastcgi_index index.php;
  40. fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@ph-crm.agensus.ru";
  41. fastcgi_pass unix:/var/www/php-fpm/ph.sock;
  42. fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  43. }
  44. listen 188.246.226.190:443 ssl;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement