mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
Update nginx.conf
This commit is contained in:
parent
4c90f885c3
commit
8467a5d48f
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ location PATHTOCHANGE {
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
if ($request_uri !~ index.php/$) {
|
||||||
|
rewrite ^/PATHTOCHANGE/(.*)$ https://$server_name/PATHTOCHANGE/index.php/$1 permanent;
|
||||||
|
}
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
|
|
Loading…
Reference in a new issue