Advertisement
Guest User

Untitled

a guest
May 19th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. server {
  2. listen 80;
  3. index index.php index.html index.htm;
  4.  
  5. #charset koi8-r;
  6.  
  7. #access_log logs/host.access.log main;
  8.  
  9. location / {
  10. root /srv/http/;
  11. index index.php index.html index.htm;
  12. }
  13.  
  14. error_page 404 /404.html;
  15.  
  16. # redirect server error pages to the static page /50x.html
  17. #
  18. error_page 500 502 503 504 /50x.html;
  19. location = /50x.html {
  20. root /usr/share/nginx/html;
  21. }
  22.  
  23. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  24. #
  25.  
  26. location ~ \.php$ {
  27. fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
  28. fastcgi_index index.php;
  29. include fastcgi.conf;
  30. }
  31. #location ~ \.php$ {
  32. # proxy_pass http://127.0.0.1;
  33. #}
  34.  
  35. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  36. #
  37. #location ~ \.php$ {
  38. # root html;
  39. # fastcgi_pass 127.0.0.1:9000;
  40. # fastcgi_index index.php;
  41. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  42. # include fastcgi_params;
  43. # deny access to .htaccess files, if Apache's document root
  44. # concurs with nginx's one
  45. #
  46. location ~ /\.ht {
  47. deny all;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement