1
0
forked from infra/ansible
infra/roles/librenms/templates/vhost.j2

20 lines
416 B
Plaintext
Raw Normal View History

2016-07-06 13:26:42 +02:00
server {
listen 80;
listen [::]:80;
server_name {{ librenms_domain }};
root /opt/librenms/wwwroot;
index index.php;
location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_intercept_errors on;
}
}