Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- root /var/www;
- index index.html index.htm index.php;
- location / {
- root /var/www;
- index index.php index.html index.htm;
- autoindex on;
- rewrite ^/Raspcontrol/details$ /Raspcontrol/index.php?page=deta$
- rewrite ^/Raspcontrol/logout$ /Raspcontrol/login.php?page=logou$
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
- include fastcgi_params;
- }
- location /stats {
- stub_status on;
- access_log off;
- allow 192.168.1.0/24;
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement