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,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue