mirror of
https://github.com/YunoHost-Apps/yellow_ynh.git
synced 2024-09-03 20:36:12 +02:00
32 lines
636 B
Nginx Configuration File
32 lines
636 B
Nginx Configuration File
location ^~ YNH_WWW_PATH {
|
|
alias YNH_WWW_ALIAS;
|
|
root /YNH_WWW_APP/;
|
|
index index.html yellow.php;
|
|
|
|
location /cache {
|
|
rewrite ^(.*)$ /error break;
|
|
}
|
|
|
|
location /content {
|
|
rewrite ^(.*)$ /error break;
|
|
}
|
|
|
|
location /system {
|
|
rewrite ^(.*)$ /error break;
|
|
}
|
|
|
|
location / {
|
|
if (!-e $request_filename) {
|
|
rewrite ^/(.*)$ /yellow.php last;
|
|
break;
|
|
}
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index yellow.php;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
}
|