1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpipam_ynh.git synced 2024-09-03 19:56:39 +02:00
phpipam_ynh/conf/nginx.conf

18 lines
466 B
Nginx Configuration File
Raw Normal View History

2019-08-27 14:42:40 +02:00
root __FINALPATH__/;
index index.php;
2019-12-10 11:21:13 +01:00
try_files $uri $uri/ /index.php?$args;
2019-08-27 14:42:40 +02:00
2020-01-13 15:16:35 +01:00
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2019-08-27 14:42:40 +02:00
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
2019-12-10 11:21:13 +01:00
}