Skip to content

Commit

Permalink
Add .well-known location work with proxy enabled sites
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jul 27, 2022
1 parent 11e83d9 commit f8c22f6
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 f8c22f6

Please sign in to comment.