Advertisement
Guest User

Untitled

a guest
Nov 28th, 2013
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. root /var/www/aaemnnost.tv/public_html;
  5. index index.html index.htm;
  6.  
  7. server_name 162.243.82.188;
  8.  
  9. location / {
  10. try_files $uri $uri/ /index.php?q=$uri&$args;
  11. }
  12.  
  13. location /doc/ {
  14. alias /usr/share/doc/;
  15. autoindex on;
  16. allow 127.0.0.1;
  17. deny all;
  18. }
  19.  
  20. # Only for nginx-naxsi : process denied requests
  21. #location /RequestDenied {
  22. # For example, return an error code
  23. #return 418;
  24. #}
  25.  
  26. error_page 404 /404.html;
  27.  
  28. # redirect server error pages to the static page /50x.html
  29. #
  30. error_page 500 502 503 504 /50x.html;
  31. location = /50x.html {
  32. root /usr/share/nginx/www;
  33. }
  34.  
  35. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  36. #
  37. location ~ \.php$ {
  38. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  39. # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  40. #
  41. # # With php5-cgi alone:
  42. # fastcgi_pass 127.0.0.1:9000;
  43. # # With php5-fpm:
  44. fastcgi_pass unix:/var/run/php5-fpm.sock;
  45. fastcgi_index index.php;
  46. include fastcgi_params;
  47. }
  48.  
  49. # deny access to .htaccess files, if Apache's document root
  50. # concurs with nginx's one
  51. #
  52. #location ~ /\.ht {
  53. # deny all;
  54. #}
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement