Files
FOSSBilling/data/nginx.conf
T
2014-11-03 09:00:47 +02:00

39 lines
912 B
Nginx Configuration File

server {
listen 80;
set $root_path '/var/www/boxbilling/src';
server_name www.boxbilling.vm;
index index.html index.htm index.php;
root $root_path;
try_files $uri $uri/ @rewrite;
sendfile off;
location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#pass to upstream configured in global nginx.conf
fastcgi_pass php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
include fastcgi_params;
}
location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
root $root_path;
expires off;
proxy_no_cache 1;
proxy_cache_bypass 1;
}
location ~ /\.ht {
deny all;
}
}