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-16 07:21:15 +02:00
parent 4dae34bbd9
commit 70c25cff8c

View file

@ -9,11 +9,11 @@ location PATHTOCHANGE {
rewrite ^ https://$server_name$request_uri? permanent; rewrite ^ https://$server_name$request_uri? permanent;
} }
rewrite ^ http://DOMAINNAMEPATHTOCHANGE/admin/ redirect;
index index.php index.html index.htm; index index.php index.html index.htm;
default_type text/html; default_type text/html;
rewrite ^/(.*)$ http://DOMAINNAMEPATHTOCHANGE/admin/$1 redirect;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php5-fpm.sock;