Apache userdir.conf configuration example for Alpine Linux v3

Get the default configuration file userdir.conf for Apache, optimized for Alpine Linux v3. This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/apache2/conf.d/userdir.conf.

For more configurations and setup guides, visit our related files section to further customize your system.

    <IfModule userdir_module>
# 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 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
    Require method GET POST OPTIONS
</Directory>

</IfModule>

    
  

Config Details

Location
/etc/apache2/conf.d/userdir.conf
Operating system
Alpine Linux v3
Length
23 lines
MD5 checksum
50eb1918b3ba8455601fcf6940fa1cc7

Usage

Download the raw file with wget or curl

Wget

wget -O userdir.conf.example https://exampleconfig.com/static/raw/apache/alpine3/etc/apache2/conf.d/userdir.conf

cURL

curl https://exampleconfig.com/static/raw/apache/alpine3/etc/apache2/conf.d/userdir.conf > userdir.conf.example