mirror of
https://github.com/YunoHost-Apps/phpipam_ynh.git
synced 2024-09-03 19:56:39 +02:00
Update nginx.conf
This commit is contained in:
parent
cdf8ea2040
commit
3318029665
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@ root __FINALPATH__/;
|
|||
index index.php;
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||
|
|
Loading…
Reference in a new issue