diff --git a/conf/nginx.conf b/conf/nginx.conf index 39d9c19..1c8c0c7 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,7 +10,7 @@ location __PATH__/ { } ### Example PHP configuration (remove it if not used) - index index.html; + index index.html index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 50M; @@ -19,7 +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.html; + fastcgi_index index.html index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; diff --git a/scripts/install b/scripts/install index 44e44a1..f18fab6 100755 --- a/scripts/install +++ b/scripts/install @@ -121,8 +121,9 @@ ynh_setup_source --dest_dir="$final_path" 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 @@ -174,9 +175,7 @@ ynh_replace_string --match_string="enable_id_obfuscation = false" --replace_stri #================================================= # GENERIC FINALIZATION #================================================= -chmod 750 "$final_path" -chown -R $app:www-data $final_path -chmod o-rwx $final_path + #================================================= # SETUP SSOWAT #=================================================