krax

parsone

Apr 3rd, 2011
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name parsone.eu;
  4.  
  5. #access_log /var/log/nginx/localhost.access.log;
  6.  
  7. location / {
  8. root /var/www/nginx-default/parsone;
  9. index index.html index.htm index.php;
  10. }
  11.  
  12. #error_page 404 /404.html;
  13.  
  14. # redirect server error pages to the static page /50x.html
  15. #
  16. error_page 500 502 503 504 /50x.html;
  17. location = /50x.html {
  18. root /var/www/nginx-default/parsone;
  19. }
  20.  
  21. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  22. #
  23. #location ~ \.php$ {
  24. #proxy_pass http://127.0.0.1;
  25. #}
  26.  
  27. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  28. #
  29. location ~ \.php$ {
  30. fastcgi_pass 127.0.0.1:9000;
  31. fastcgi_index index.php;
  32. fastcgi_param SCRIPT_FILENAME $fastcgi_script_name
  33. include fastcgi_params;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment