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
70c25cff8c
commit
b51be967e3
3 changed files with 1 additions and 9 deletions
|
@ -1,7 +1,3 @@
|
|||
location PATHTOCHANGEadmin/ {
|
||||
|
||||
}
|
||||
|
||||
location PATHTOCHANGE {
|
||||
alias ALIASTOCHANGE;
|
||||
|
||||
|
@ -12,8 +8,6 @@ location PATHTOCHANGE {
|
|||
index index.php index.html index.htm;
|
||||
default_type text/html;
|
||||
|
||||
rewrite ^/(.*)$ http://DOMAINNAMEPATHTOCHANGE/admin/$1 redirect;
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
|
@ -24,8 +18,6 @@ location PATHTOCHANGE {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
|
@ -52,7 +52,6 @@ sudo chown -R www-data: $final_path
|
|||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf*
|
||||
sed -i "s@ALIASTOCHANGE@$final_path@g" ../conf/nginx.conf*
|
||||
sed -i "s@DOMAINNAME@$domain@g" ../conf/nginx.conf*
|
||||
nginxconf=/etc/nginx/conf.d/$domain.d/yourls.conf
|
||||
sudo cp ../conf/nginx.conf $nginxconf
|
||||
sudo chown root: $nginxconf
|
||||
|
|
1
sources/index.php
Normal file
1
sources/index.php
Normal file
|
@ -0,0 +1 @@
|
|||
to finish to install go to <a href="/admin">Admin page</a>
|
Loading…
Reference in a new issue