Get the default configuration file userdir.conf for Apache, optimized for Ubuntu 12.04 LTS (Precise Pangolin). 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/mods-available/userdir.conf.
For more configurations and setup guides, visit our related files section to further customize your system.
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
Download the raw file with wget or curl
wget -O userdir.conf.example https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/mods-available/userdir.conf
curl https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/mods-available/userdir.conf > userdir.conf.example
Other config files you might find useful