diff --git a/conf/nginx.conf b/conf/nginx.conf index ddda443..ca4834f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,19 +7,17 @@ location __PATH__/ { client_body_timeout 60m; proxy_read_timeout 60m; fastcgi_read_timeout 60m; - - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; + client_max_body_size 50M; try_files $uri @__NAME__; - location ~ ^__PATH__/index\.php(/|$) { - fastcgi_split_path_info ^(.+\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; + location ~ ^__PATH__/index\.php(/|$) { include fastcgi_params; - fastcgi_param REMOTE_USER $remote_user; - fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param REMOTE_USER $remote_user; + fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_intercept_errors on; } @@ -36,8 +34,3 @@ location __PATH__/ { location @__NAME__ { rewrite ^ __PATH__/index.php/$is_args$args; } - -#for-subdir location __PATH__ { -#for-subdir return 301 __PATH__/; -#for-subdir } - diff --git a/scripts/install b/scripts/install index 1fa354e..db80303 100644 --- a/scripts/install +++ b/scripts/install @@ -24,8 +24,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" -chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +chmod -R 750 "$install_dir" #================================================= # SYSTEM CONFIGURATION