userdir: fix 403
This commit is contained in:
parent
b26bb94495
commit
e26b2c1ebe
|
@ -29,10 +29,17 @@ in
|
||||||
virtualHosts.${domain} = {
|
virtualHosts.${domain} = {
|
||||||
enableUserDir = true;
|
enableUserDir = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
UserDir /home/users/*/public_html
|
||||||
<Directory "/home/users/*/public_html">
|
<Directory "/home/users/*/public_html">
|
||||||
Options -Indexes
|
Options -Indexes +MultiViews +SymLinksIfOwnerMatch +IncludesNoExec
|
||||||
DirectoryIndex index.php index.html
|
DirectoryIndex index.php index.html
|
||||||
AllowOverride FileInfo AuthConfig Limit Indexes Options=Indexes
|
AllowOverride FileInfo AuthConfig Limit Indexes Options=Indexes
|
||||||
|
<Limit GET POST OPTIONS>
|
||||||
|
Require all granted
|
||||||
|
</Limit>
|
||||||
|
<LimitExcept GET POST OPTIONS>
|
||||||
|
Require all denied
|
||||||
|
</LimitExcept>
|
||||||
</Directory>
|
</Directory>
|
||||||
'';
|
'';
|
||||||
listen = [{
|
listen = [{
|
||||||
|
|
Loading…
Reference in a new issue