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
4cec6dbacc
commit
cd0d9d8b8c
2 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
location PATHTOCHANGE {
|
||||
alias ALIASTOCHANGE;
|
||||
|
||||
root var/www/PATHTOCHANGE/sources/admin/
|
||||
|
||||
index index.php index.html index.htm;
|
||||
default_type text/html;
|
||||
location ~ [^/]\.php(/|$) {
|
||||
|
|
|
@ -51,6 +51,7 @@ 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*
|
||||
nginxconf=/etc/nginx/conf.d/$domain.d/yourls.conf
|
||||
sudo cp ../conf/nginx.conf $nginxconf
|
||||
sudo chown root: $nginxconf
|
||||
|
|
Loading…
Reference in a new issue