mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
syntax nginx changed
This commit is contained in:
parent
cfc076fb3d
commit
b8383f9a48
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
location __PATH__ {
|
location __PATH__ {
|
||||||
|
|
||||||
# Path to source
|
# Path to source
|
||||||
alias __FINALPATH__/www/ ;
|
alias __FINALPATH__/www/;
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
@ -20,10 +20,9 @@ if ($scheme = http) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example PHP configuration (remove if not used)
|
# Example PHP configuration (remove if not used)
|
||||||
location __PATH__/ {
|
|
||||||
index index.php /_route.php;
|
index index.php /_route.php;
|
||||||
try_files $uri $uri/ index.php /_route.php;
|
try_files $uri $uri/ index.php /_route.php;
|
||||||
}
|
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
try_files $uri $uri/ /_route.php;
|
try_files $uri $uri/ /_route.php;
|
||||||
|
|
Loading…
Add table
Reference in a new issue