mirror of
https://github.com/YunoHost-Apps/concrete5_ynh.git
synced 2024-09-03 18:25:54 +02:00
Update nginx.conf
This commit is contained in:
parent
ce6620dbe4
commit
9c3befd082
1 changed files with 0 additions and 60 deletions
|
@ -137,63 +137,3 @@ location ^~ YNH_WWW_PATH {
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
# include conf.d/yunohost_panel.conf.inc;
|
# include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
location / {
|
|
||||||
# First attempt to serve request as file, then
|
|
||||||
# as directory, then fall back to front-end controller
|
|
||||||
# (do not forget to pass GET parameters).
|
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /install.php/ {
|
|
||||||
try_files $uri $uri/ /install.php?$query_string;
|
|
||||||
}
|
|
||||||
location ~ /dev.php/ {
|
|
||||||
try_files $uri $uri/ /dev.php?$query_string;
|
|
||||||
}
|
|
||||||
location ~ /preview.php/ {
|
|
||||||
try_files $uri $uri/ /preview.php?$query_string;
|
|
||||||
}
|
|
||||||
location ~ /clear_cache.php/ {
|
|
||||||
try_files $uri $uri/ /clear_cache.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Production entry point.
|
|
||||||
#
|
|
||||||
location ~ ^/index\.php(/|$) {
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
|
||||||
# With php5-fpm:
|
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
|
||||||
include fastcgi_params;
|
|
||||||
# Prevents URIs that include the front controller. This will 404:
|
|
||||||
# http://domain.tld/app.php/some-path
|
|
||||||
# Remove the internal directive to allow URIs like this
|
|
||||||
internal;
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
# Preview, Dev and Install entry points.
|
|
||||||
#
|
|
||||||
# In production server, don't deploy dev.php or install.php
|
|
||||||
#
|
|
||||||
location ~ ^/(dev|install|preview|clear_cache)\.php(/|$) {
|
|
||||||
# Enforce OPCache PHP class cache invalidation at each request
|
|
||||||
#fastcgi_param PHP_VALUE "opcache.revalidate_freq=0";
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
|
|
||||||
# With php5-fpm:
|
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue