1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

update nginx conf

This commit is contained in:
Thomas LEBEAU 2014-06-15 22:36:13 +02:00
parent cd0d9d8b8c
commit dff4bc1468

View file

@ -1,10 +1,13 @@
location PATHTOCHANGE {
alias ALIASTOCHANGE;
root var/www/PATHTOCHANGE/sources/admin/
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.php index.html index.htm;
try_files $uri $uri/ index.php;
default_type text/html;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;