1
0
Fork 0
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:
Robles Rodolphe 2020-08-07 18:58:18 +02:00
parent cfc076fb3d
commit b8383f9a48

View file

@ -1,12 +1,12 @@
location __PATH__ {
# Path to source
alias __FINALPATH__/www/ ;
alias __FINALPATH__/www/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
# Protecting sensibles urls
location ~ 403 {
rewrite ^(.*)$ /include/ redirect;
@ -20,10 +20,9 @@ if ($scheme = http) {
}
# Example PHP configuration (remove if not used)
location __PATH__/ {
index index.php /_route.php;
try_files $uri $uri/ index.php /_route.php;
}
location ~ [^/]\.php(/|$) {
try_files $uri $uri/ /_route.php;