31 lines
744 B
Plaintext
31 lines
744 B
Plaintext
server {
|
|
listen __PORT__;
|
|
server_name manager.__DNSDOMAIN__;
|
|
root __MANAGERDIR__;
|
|
|
|
rewrite ^/$ /manager.psgi last;
|
|
if ($uri !~ ^/(static|doc|fr-doc|lib|javascript)) {
|
|
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;
|
|
}
|
|
|
|
location / {
|
|
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/;
|
|
#}
|
|
}
|