Guest User

Untitled

a guest
Mar 24th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. server {
  2. #listen 80; ## listen for ipv4; this line is default and implied
  3. #listen [::]:80 default ipv6only=on; ## listen for ipv6
  4.  
  5. root /usr/share/nginx/www;
  6. index index.html index.htm index.php;
  7.  
  8. # Make site accessible from http://localhost/
  9. server_name localhost;
  10.  
  11.  
  12. location / {
  13. # First attempt to serve request as file, then
  14. # as directory, then fall back to index.html
  15. try_files $uri $uri/ /index.html index.php;
  16. }
  17.  
  18. location /cacti {
  19. alias /usr/share/cacti/site;
  20. index index.php;
  21.  
  22. }
  23.  
  24.  
  25. location ~ \.php$ {
  26.  
  27.  
  28. fastcgi_pass 127.0.0.1:9000;
  29.  
  30. fastcgi_index index.php;
  31.  
  32.  
  33. include fastcgi_params;
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment