Advertisement
Guest User

Untitled

a guest
Dec 17th, 2012
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. server {
  2. listen wiki.example.com:80;
  3. server_name wiki.example.com;
  4. root www/wiki;
  5. index index.html index.htm index.php;
  6.  
  7. location / {
  8. try_files $uri =404;
  9. }
  10.  
  11. location ~ .php$ {
  12. root www/wiki;
  13. fastcgi_pass 127.0.0.1:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16. include fastcgi_params;
  17. index index.php;
  18. }
  19.  
  20. error_page 500 502 503 504 /50x.html;
  21. location = /50x.html {
  22. root html;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement