Guest User

Untitled

a guest
Jan 23rd, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. server {
  2.  
  3. listen 80;
  4. server_name site.ru;
  5. server_name_in_redirect off;
  6.  
  7. access_log /var/www/site.ru/log/access.log;
  8. error_log /var/www/site.ru/log/error.log;
  9.  
  10. index index.php;
  11. root /var/www/site.ru/www;
  12.  
  13. location / {
  14. index index.php;
  15. }
  16.  
  17. error_page 404 /error404.php;
  18.  
  19. location /events{
  20. sendfile on;
  21. try_files $uri $uri/ /events/index.php;
  22. }
  23.  
  24. location ~ \.php$ {
  25. include fastcgi_params;
  26. fastcgi_pass php;
  27. add_header tester $document_root;
  28. fastcgi_param SCRIPT_FILENAME /var/www/site.ru/www$fastcgi_script_name;
  29. }
  30. }
Add Comment
Please, Sign In to add comment