Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. server {
  2. server_name sait.com www.sait.com;
  3. charset off;
  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/sait.com/*.conf;
  8. access_log /var/www/httpd-logs/sait.com.access.log;
  9. error_log /var/www/httpd-logs/sait.com.error.log notice;
  10. ssi on;
  11. set $root_path /var/www/site/data/www/sait.com;
  12. root $root_path;
  13. listen 151.151.151.151:80;
  14.  
  15. location / {
  16. location ~ [^/]\.ph(p\d*|tml)$ {
  17. try_files /does_not_exists @php;
  18. }
  19. }
  20.  
  21.  
  22.  
  23. location @php {
  24. fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@sait.com";
  25. fastcgi_param SCRIPT_FILENAME /var/www/site/data/www/sait.com/engine/index.php;
  26. fastcgi_param HTTPS $http_x_forwarded_https if_not_empty;
  27. fastcgi_pass unix:/var/www/php-fpm/site.sock;
  28. try_files $uri =404;
  29. include /etc/nginx/fastcgi_params;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement