@@ -251,37 +251,37 @@ EOF
251251phpfpm_configure_site_default() {
252252    if [ -z "${NGINX_SITE_ENABLED}" ] && [ ! -f "/etc/nginx/sites.available/default.conf" ] && [ -f "/etc/cont-init.d/20-php-fpm" ]; then
253253        cat <<EOF > /etc/nginx/sites.available/default.conf
254-   server {
255-      ### Don't Touch This
256-      listen ${NGINX_LISTEN_PORT};
257-      root ${NGINX_WEBROOT};
258- 
259-      ### Populate your custom directives here
260-      index  index.php index.html index.htm;
261- 
262-      location / {
263-         try_files \$uri \$uri/ /index.php?\$args;
264-       }
265- 
266-      ### Populate your custom directives here
267-      location ~ \.php(/|\$) {
268-         include /etc/nginx/snippets/php-fpm.conf;
269-         fastcgi_split_path_info ^(.+?\.php)(/.+)\$;
270-         fastcgi_param PATH_INFO \$fastcgi_path_info;
271-         fastcgi_index index.php;
272-         include fastcgi_params;
273-         fastcgi_param SCRIPT_FILENAME $document_root\$fastcgi_script_name;
254+     server {
255+         ### Don't Touch This
256+         listen ${NGINX_LISTEN_PORT};
257+         root ${NGINX_WEBROOT};
258+ 
259+         ### Populate your custom directives here
260+         index  index.php index.html index.htm;
261+ 
262+         location / {
263+             try_files \$uri \$uri/ /index.php?\$args;
264+         }
265+ 
266+         ### Populate your custom directives here
267+         location ~ \.php(/|\$) {
268+             include /etc/nginx/snippets/php-fpm.conf;
269+             fastcgi_split_path_info ^(.+?\.php)(/.+)\$;
270+             fastcgi_param PATH_INFO \$fastcgi_path_info;
271+             fastcgi_index index.php;
272+             include fastcgi_params;
273+             fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
274+         }
275+ 
276+         # Deny access to any files with a .php extension in the uploads directory
277+         location ~* /(?:uploads|files)/.*\.php$ {
278+             deny all;
279+         }
280+ 
281+         ### Don't edit past here
282+         include /etc/nginx/snippets/site_optimization.conf;
283+         include /etc/nginx/snippets/exploit_protection.conf;
274284    }
275- 
276-      # Deny access to any files with a .php extension in the uploads directory
277-      location ~* /(?:uploads|files)/.*\.php$ {
278-    	    deny all;
279-      }
280- 
281-     ### Don't edit past here
282-     include /etc/nginx/snippets/site_optimization.conf;
283-     include /etc/nginx/snippets/exploit_protection.conf;
284- }
285285EOF
286286        NGINX_SITE_ENABLED=default
287287        nginx_site_enable default
0 commit comments