Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name site.ru;
- server_name_in_redirect off;
- access_log /var/www/site.ru/log/access.log;
- error_log /var/www/site.ru/log/error.log;
- index index.php;
- root /var/www/site.ru/www;
- location / {
- index index.php;
- }
- error_page 404 /error404.php;
- location /events{
- sendfile on;
- try_files $uri $uri/ /events/index.php;
- }
- location ~ \.php$ {
- include fastcgi_params;
- fastcgi_pass php;
- add_header tester $document_root;
- fastcgi_param SCRIPT_FILENAME /var/www/site.ru/www$fastcgi_script_name;
- }
- }
Add Comment
Please, Sign In to add comment