Guest User

mynginx

a guest
May 4th, 2013
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. root /var/www;
  5. index index.html index.htm index.php;
  6.  
  7. location / {
  8. root /var/www;
  9. index index.php index.html index.htm;
  10. autoindex on;
  11. rewrite ^/Raspcontrol/details$ /Raspcontrol/index.php?page=deta$
  12. rewrite ^/Raspcontrol/logout$ /Raspcontrol/login.php?page=logou$
  13. }
  14.  
  15. location ~ \.php$ {
  16. try_files $uri =404;
  17. fastcgi_pass 127.0.0.1:9000;
  18. fastcgi_index index.php;
  19. fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
  20. include fastcgi_params;
  21. }
  22. location /stats {
  23. stub_status on;
  24. access_log off;
  25. allow 192.168.1.0/24;
  26. deny all;
  27. }
  28. }
RAW Paste Data