lemonldap-ng/_example/etc/portal-nginx.conf
Xavier Guimard 4fa692773d Update comments (Closes: #287)
Also #583 for headers management
2016-02-11 09:36:12 +00:00

23 lines
511 B
Plaintext

server {
listen __PORT__;
server_name auth.__DNSDOMAIN__;
root __PORTALDIR__;
rewrite ^/$ /index.pl last;
location ~ \.pl$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass __PSGISERVERSOCKET__;
fastcgi_param LLTYPE auth;
fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;
fascgi_split_path_info ^(.*\.pl)(/.+)$;
}
location / {
try_files $uri $uri/ =404;
# Uncomment this if you use https only
#add_header Strict-Transport-Security "15768000";
}
}