Skip to content

Commit 609bd4b

Browse files
Merge remote-tracking branch '39228/feat/disable-nginx-setup-route' into comps_78764_2205
2 parents a04b0ef + c6da023 commit 609bd4b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

nginx.conf.sample

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ location /.user.ini {
4747
location ~* ^/setup($|/) {
4848
root $MAGE_ROOT;
4949
location ~ ^/setup/index.php {
50+
deny all;
51+
# If you want to enable the web based setup functionality, add your
52+
# ip address to the allow list below or comment out the deny all above.
53+
# allow 127.0.0.1;
54+
5055
fastcgi_pass fastcgi_backend;
5156

5257
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";

setup/.htaccess

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# If you want to enable the web based setup functionality, add your ip address
2+
# to the allow list below or comment out the IfVersion Deny deny blocks below.
3+
<Files "index.php">
4+
<IfVersion < 2.4>
5+
order allow,deny
6+
deny from all
7+
</IfVersion>
8+
<IfVersion >= 2.4>
9+
Require all denied
10+
</IfVersion>
11+
</Files>
12+
113
Options -Indexes
214

315
<IfModule mod_rewrite.c>

0 commit comments

Comments
 (0)