mirror of
https://github.com/YunoHost-Apps/yourls_ynh.git
synced 2024-09-03 20:35:59 +02:00
udpate nginx conf /via ju
This commit is contained in:
parent
8bdd705dbb
commit
1e85c8609e
1 changed files with 1 additions and 16 deletions
|
@ -1,21 +1,10 @@
|
|||
location PATHTOCHANGE {
|
||||
alias ALIASTOCHANGE;
|
||||
|
||||
try_files $uri $uri/ @yourls;
|
||||
try_files $uri $uri/ PATHTOCHANGE/yourls-loader.php;
|
||||
|
||||
index index.php index.html index.htm;
|
||||
|
||||
if (-f $request_filename) {
|
||||
expires max;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^/([0-9a-z]+)/?$ /yourls-go.php?id=$1 last;
|
||||
rewrite ^/([0-9a-z]+)\+/?$ /yourls-infos.php?id=$1 last;
|
||||
rewrite ^/([0-9a-z]+)\+all/?$ /yourls-infos.php?id=$1&all=1 last;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+.php)(/.+)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
|
@ -24,10 +13,6 @@ location PATHTOCHANGE {
|
|||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
|
|
Loading…
Reference in a new issue