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:
parent
cd0d9d8b8c
commit
dff4bc1468
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue