Skip to content

Commit

Permalink
Removed redundent locatio sections
Browse files Browse the repository at this point in the history
  • Loading branch information
valguss authored Mar 14, 2023
1 parent 6ad8fd3 commit 94b0b3b
Showing 1 changed file with 1 addition and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,46 +93,6 @@ server {
#add_header 'X-Content-Type-Options' 'nosniff';
#add_header 'X-XSS-Protection' '1; mode=block';

location /setup {
root $MAGE_ROOT;
location ~ ^/setup/index.php {
fastcgi_pass $xdebug_test_pass;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

location ~ ^/setup/(?!pub/). {
deny all;
}

location ~ ^/setup/pub/ {
add_header X-Frame-Options "SAMEORIGIN";
}
}

location /update {
root $MAGE_ROOT;

location ~ ^/update/index.php {
fastcgi_split_path_info ^(/update/index.php)(/.+)$;
fastcgi_pass $xdebug_test_pass;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}

# deny everything but index.php
location ~ ^/update/(?!pub/). {
deny all;
}

location ~ ^/update/pub/ {
add_header X-Frame-Options "SAMEORIGIN";
}
}

location / {
try_files $uri $uri/ /index.php?$args;
}
Expand Down Expand Up @@ -234,4 +194,4 @@ server {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}

0 comments on commit 94b0b3b

Please sign in to comment.