lemonldap-ng/_example/etc/manager-nginx.conf
2017-01-09 21:54:06 +00:00

45 lines
1.0 KiB
Plaintext

server {
listen __PORT__;
server_name manager.__DNSDOMAIN__;
root __MANAGERDIR__;
if ($uri !~ ^/(static|doc|fr-doc|lib|javascript|favicon)) {
rewrite ^/(.*)$ /manager.psgi/$1 break;
}
location /manager.psgi {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
fastcgi_param LLTYPE manager;
fastcgi_param SCRIPT_NAME /manager.psgi;
fastcgi_split_path_info ^(.*\.psgi)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location / {
index manager.psgi;
try_files $uri $uri/ =404;
# Uncomment this if you use https only
#add_header Strict-Transport-Security "15768000";
}
# DEBIAN
# If install was made with USEDEBIANLIBS (official releases), uncomment this
#location /javascript/ {
# alias /usr/share/javascript/;
#}
location /doc/ {
alias __DEFDOCDIR__;
index index.html start.html;
}
location /lib/ {
alias __DEFDOCDIR__lib/;
}
location /fr-doc/ {
alias __FRDOCDIR__;
index index.html start.html;
}
}