Skip to content

Commit

Permalink
Merge pull request #33 from virtualmin/dev/proxy-and-well-known-location
Browse files Browse the repository at this point in the history
Add `.well-known` location work with proxy enabled sites
  • Loading branch information
jcameron authored Aug 22, 2022
2 parents 06a255a + f8c22f6 commit 3823d7a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,18 @@ sub feature_setup
&save_directive($server, "fastcgi_param",
[ map { { 'words' => $_ } } @params ]);

# Add .well-known location work with proxy enabled sites
my $wploc = { 'name' => 'location',
'words' => [ '^~', '/.well-known/' ],
'type' => 1,
'members' => [
{ 'name' => 'try_files',
'words' => [ '$uri', '/' ],
},
],
};
&save_directive($server, [ ], [ $wploc ]);

# Add location
my $ploc = { 'name' => 'location',
'words' => [ '~', '\.php(/|$)' ],
Expand Down

0 comments on commit 3823d7a

Please sign in to comment.