Advertisement
Guest User

Untitled

a guest
Jul 18th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. # With php5-cgi alone:
  2. fastcgi_pass 127.0.0.1:9000;
  3. # With php5-fpm:
  4. fastcgi_pass unix:/var/run/php5-fpm.sock;
  5.  
  6.  
  7. from:
  8.  
  9. server {
  10. #listen 80; ## listen for ipv4; this line is default and implied
  11. #listen [::]:80 default_server ipv6only=on; ## listen for ipv6
  12.  
  13. root /usr/share/nginx/www;
  14. index index.html index.htm;
  15.  
  16. # Make site accessible from http://localhost/
  17. server_name localhost;
  18.  
  19. location / {
  20. # First attempt to serve request as file, then
  21. # as directory, then fall back to displaying a 404.
  22. try_files $uri $uri/ /index.html;
  23. # Uncomment to enable naxsi on this location
  24. # include /etc/nginx/naxsi.rules
  25. }
  26.  
  27. location /doc/ {
  28. alias /usr/share/doc/;
  29. autoindex on;
  30. allow 127.0.0.1;
  31. allow ::1;
  32. deny all;
  33. }
  34.  
  35. # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
  36. #location /RequestDenied {
  37. # proxy_pass http://127.0.0.1:8080;
  38. #}
  39.  
  40. #error_page 404 /404.html;
  41.  
  42. # redirect server error pages to the static page /50x.html
  43. #
  44. #error_page 500 502 503 504 /50x.html;
  45. #location = /50x.html {
  46. # root /usr/share/nginx/www;
  47. #}
  48.  
  49. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  50. #
  51. #location ~ \.php$ {
  52. # fastcgi_split_path_info ^(.+\.php)(/.+)$;
  53. # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  54. #
  55. # # With php5-cgi alone:
  56. # fastcgi_pass 127.0.0.1:9000;
  57. # # With php5-fpm:
  58. # fastcgi_pass unix:/var/run/php5-fpm.sock;
  59. # fastcgi_index index.php;
  60. # include fastcgi_params;
  61. #}
  62.  
  63. # deny access to .htaccess files, if Apache's document root
  64. # concurs with nginx's one
  65. #
  66. #location ~ /\.ht {
  67. # deny all;
  68. #}
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement