2017-01-18 11:22:49 +01:00
|
|
|
location ^~ YNH_WWW_PATH {
|
|
|
|
root /var/www;
|
|
|
|
try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string;
|
|
|
|
index /YNH_WWW_APP/index.php;
|
|
|
|
|
|
|
|
location ~* \.php$ {
|
|
|
|
fastcgi_split_path_info ^(.+.php)(/.+)$;
|
|
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability
|
|
|
|
fastcgi_index yellow.php;
|
|
|
|
fastcgi_read_timeout 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|