mirror of
https://github.com/YunoHost-Apps/pluxml_ynh.git
synced 2024-09-03 20:16:02 +02:00
[fix] removing useless .htaccess
whatever, it was removed anyway just after to be copied.
This commit is contained in:
parent
e1fd9094dc
commit
78d5945e1c
2 changed files with 13 additions and 1 deletions
|
@ -13,6 +13,7 @@ location YNH_EXAMPLE_PATH {
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
location YNH_EXAMPLE_PATH/data/medias{
|
location YNH_EXAMPLE_PATH/data/medias{
|
||||||
=======
|
=======
|
||||||
|
@ -24,6 +25,18 @@ location YNH_EXAMPLE_PATH {
|
||||||
deny all;
|
deny all;
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
=======
|
||||||
|
|
||||||
|
location ^~ YNH_EXAMPLE_PATH/data/medias/ {
|
||||||
|
allow all;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ YNH_EXAMPLE_FOLDER/data/ {
|
||||||
|
deny all;
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
||||||
|
>>>>>>> 63093af... [fix] path access issue
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,6 @@ sudo mkdir -p $final_path
|
||||||
|
|
||||||
#copy files to final folder and set permissions
|
#copy files to final folder and set permissions
|
||||||
sudo cp -R ../sources/* $final_path/
|
sudo cp -R ../sources/* $final_path/
|
||||||
sudo cp ../sources/.htaccess $final_path/
|
|
||||||
sudo find $final_path -type f -name ".htaccess" | xargs sudo rm
|
sudo find $final_path -type f -name ".htaccess" | xargs sudo rm
|
||||||
|
|
||||||
#setup permissions
|
#setup permissions
|
||||||
|
|
Loading…
Add table
Reference in a new issue