mirror of
https://github.com/YunoHost-Apps/yellow_ynh.git
synced 2024-09-03 20:36:12 +02:00
Create nginx_root.conf
This commit is contained in:
parent
e19f4680f1
commit
9d85cdbbb4
1 changed files with 69 additions and 0 deletions
69
conf/nginx_root.conf
Normal file
69
conf/nginx_root.conf
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
root /var/www/website/;
|
||||||
|
index index.html yellow.php;
|
||||||
|
|
||||||
|
location ^~ / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
index /index.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_http_version 1.1;
|
||||||
|
gzip_vary on;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
gzip_proxied any;
|
||||||
|
gzip_types application/atom+xml
|
||||||
|
application/javascript
|
||||||
|
application/json
|
||||||
|
application/vnd.ms-fontobject
|
||||||
|
application/x-font-ttf
|
||||||
|
application/x-web-app-manifest+json
|
||||||
|
application/xhtml+xml
|
||||||
|
application/xml
|
||||||
|
font/opentype
|
||||||
|
image/svg+xml
|
||||||
|
image/x-icon
|
||||||
|
text/css
|
||||||
|
text/plain
|
||||||
|
text/xml;
|
||||||
|
gzip_buffers 16 8k;
|
||||||
|
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
||||||
|
|
||||||
|
|
||||||
|
# Include SSOWAT user panel.
|
||||||
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
}
|
Loading…
Reference in a new issue