From ae6e2da429b6a81e0b612d1969f20b3177197810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 15 Jul 2021 12:30:52 +0200 Subject: httpd.conf: Enable userdirs --- usr/pkg/etc/httpd/httpd-userdir.conf | 21 +++++++++++++++++++++ usr/pkg/etc/httpd/httpd.conf | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 usr/pkg/etc/httpd/httpd-userdir.conf diff --git a/usr/pkg/etc/httpd/httpd-userdir.conf b/usr/pkg/etc/httpd/httpd-userdir.conf new file mode 100644 index 0000000..704dbe4 --- /dev/null +++ b/usr/pkg/etc/httpd/httpd-userdir.conf @@ -0,0 +1,21 @@ +# Settings for user home directories +# +# Required module: mod_authz_core, mod_authz_host, mod_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 www + +# +# Control access to UserDir directories. The following is an example +# for a site where these directories are restricted to read-only. +# + + AllowOverride FileInfo AuthConfig Limit Indexes + Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + Require method GET POST OPTIONS + + diff --git a/usr/pkg/etc/httpd/httpd.conf b/usr/pkg/etc/httpd/httpd.conf index f5166f0..135fea7 100644 --- a/usr/pkg/etc/httpd/httpd.conf +++ b/usr/pkg/etc/httpd/httpd.conf @@ -106,7 +106,7 @@ LoadModule autoindex_module lib/httpd/mod_autoindex.so LoadModule dir_module lib/httpd/mod_dir.so #LoadModule actions_module lib/httpd/mod_actions.so #LoadModule speling_module lib/httpd/mod_speling.so -#LoadModule userdir_module lib/httpd/mod_userdir.so +LoadModule userdir_module lib/httpd/mod_userdir.so LoadModule alias_module lib/httpd/mod_alias.so LoadModule rewrite_module lib/httpd/mod_rewrite.so LoadModule perl_module lib/httpd/mod_perl.so @@ -200,7 +200,7 @@ LogLevel warn #Include etc/httpd/httpd-languages.conf # User home directories -#Include etc/httpd/httpd-userdir.conf +Include etc/httpd/httpd-userdir.conf # Real-time info on requests and configuration #Include etc/httpd/httpd-info.conf -- cgit v1.2.3