diff options
| author | Syndamia <kamen@syndamia.com> | 2022-09-06 10:53:34 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2022-09-06 10:53:34 +0300 |
| commit | abdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83 (patch) | |
| tree | ba3e845eefb201676fcc87e964ab5035f3222585 /.b/etc/apache2/modules.d/00_mod_userdir.conf | |
| parent | dd6a62a3c881c0b2e71db5bb923c60a54d2b016d (diff) | |
| download | dotfiles-abdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83.tar dotfiles-abdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83.tar.gz dotfiles-abdbd80ac4dcc42619ee4ed12c19fb5d71fa2d83.zip | |
Added many configs to .b
Diffstat (limited to '.b/etc/apache2/modules.d/00_mod_userdir.conf')
| -rw-r--r-- | .b/etc/apache2/modules.d/00_mod_userdir.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.b/etc/apache2/modules.d/00_mod_userdir.conf b/.b/etc/apache2/modules.d/00_mod_userdir.conf new file mode 100644 index 0000000..0087126 --- /dev/null +++ b/.b/etc/apache2/modules.d/00_mod_userdir.conf @@ -0,0 +1,32 @@ +# Settings for user home directories +<IfDefine USERDIR> +# UserDir: The name of the directory that is appended onto a user's home +# directory if a ~user request is received. Note that you must also set +# the default access control for these directories, as in the example below. +UserDir public_html + +# Control access to UserDir directories. The following is an example +# for a site where these directories are restricted to read-only. +<Directory /home/*/public_html> + AllowOverride FileInfo AuthConfig Limit Indexes + Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + <Limit GET POST OPTIONS> + Require all granted + </Limit> + <LimitExcept GET POST OPTIONS> + Require all denied + </LimitExcept> +</Directory> + +# Suexec isn't really required to run cgi-scripts, but it's a really good +# idea if you have multiple users serving websites... +<IfDefine SUEXEC> +<Directory /home/*/public_html/cgi-bin> + Options ExecCGI + SetHandler cgi-script +</Directory> +</IfDefine> + +</IfDefine> + +# vim: ts=4 filetype=apache |
