Skip to content

Commit 3823d7a

Browse files
authored
Merge pull request #33 from virtualmin/dev/proxy-and-well-known-location
Add `.well-known` location work with proxy enabled sites
2 parents 06a255a + f8c22f6 commit 3823d7a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

virtual_feature.pl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,18 @@ sub feature_setup
255255
&save_directive($server, "fastcgi_param",
256256
[ map { { 'words' => $_ } } @params ]);
257257

258+
# Add .well-known location work with proxy enabled sites
259+
my $wploc = { 'name' => 'location',
260+
'words' => [ '^~', '/.well-known/' ],
261+
'type' => 1,
262+
'members' => [
263+
{ 'name' => 'try_files',
264+
'words' => [ '$uri', '/' ],
265+
},
266+
],
267+
};
268+
&save_directive($server, [ ], [ $wploc ]);
269+
258270
# Add location
259271
my $ploc = { 'name' => 'location',
260272
'words' => [ '~', '\.php(/|$)' ],

0 commit comments

Comments
 (0)