2017-01-18 11:22:49 +01:00
|
|
|
location ^~ YNH_WWW_PATH {
|
2017-02-01 20:15:19 +01:00
|
|
|
alias YNH_WWW_ALIASwww/ ;
|
2017-02-01 20:18:27 +01:00
|
|
|
index /YNH_WWW_APP/yellow.php;
|
2017-01-18 11:22:49 +01:00
|
|
|
|
|
|
|
location ~* \.php$ {
|
2017-02-01 20:15:19 +01:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
2017-01-18 11:22:49 +01:00
|
|
|
fastcgi_index yellow.php;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* \.html$ {
|
|
|
|
expires -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* \.(css|js|gif|jpe?g|png)$ {
|
|
|
|
expires 1M;
|
|
|
|
add_header Pragma public;
|
|
|
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
|
|
|
}
|
2017-01-18 18:29:38 +01:00
|
|
|
location YNH_WWW_PATH/cache {
|
2017-01-18 11:22:49 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
|
|
|
}
|
|
|
|
|
2017-01-18 18:29:38 +01:00
|
|
|
location YNH_WWW_PATH/content {
|
2017-01-18 11:22:49 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
|
|
|
}
|
2017-01-18 18:29:38 +01:00
|
|
|
location YNH_WWW_PATH/ {
|
2017-01-18 11:22:49 +01:00
|
|
|
if (!-e $request_filename) {
|
|
|
|
rewrite ^/(.*)$ /yellow.php last;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2017-01-18 18:29:38 +01:00
|
|
|
location YNH_WWW_PATH/system {
|
2017-01-18 11:22:49 +01:00
|
|
|
rewrite ^(.*)$ /error break;
|
|
|
|
}
|
2017-02-01 20:03:20 +01:00
|
|
|
|
2017-01-18 11:22:49 +01:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2017-02-01 20:03:20 +01:00
|
|
|
|
2017-01-18 11:22:49 +01:00
|
|
|
}
|