mirror of
https://github.com/YunoHost-Apps/librespeed_ynh.git
synced 2024-09-03 19:36:23 +02:00
Modifier index.php en index.html
This commit is contained in:
parent
78f011e5e3
commit
7fa622ccab
2 changed files with 8 additions and 12 deletions
|
@ -10,7 +10,7 @@ location __PATH__/ {
|
|||
}
|
||||
|
||||
### Example PHP configuration (remove it if not used)
|
||||
index index.php;
|
||||
index index.html;
|
||||
|
||||
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
||||
#client_max_body_size 50M;
|
||||
|
@ -19,8 +19,7 @@ location __PATH__/ {
|
|||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||
|
||||
fastcgi_index index.php;
|
||||
fastcgi_index index.html;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
|
|
|
@ -119,7 +119,12 @@ ynh_setup_source --dest_dir="$final_path"
|
|||
# But FOR THE LOVE OF GOD, do not allow r/x for "others" on the entire folder -
|
||||
# this will be treated as a security issue.
|
||||
|
||||
mv $final_path/'example-singleServer-pretty.html' "$final_path/index.html"
|
||||
mv $final_path/'example-singleServer-full.html' "$final_path/index.html"
|
||||
|
||||
chmod 750 "$final_path"
|
||||
chown -R $app:www-data $final_path
|
||||
chmod o-rwx $final_path
|
||||
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -171,14 +176,6 @@ ynh_replace_string --match_string="enable_id_obfuscation = false" --replace_stri
|
|||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
# Set permissions to app files
|
||||
chmod 750 "$final_path"
|
||||
chown -R $app:www-data $final_path
|
||||
chmod o-rwx $final_path
|
||||
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
Loading…
Add table
Reference in a new issue