# This is our main site
ServerAdmin webmaster@example.com
ServerName example.com
Options FollowSymLinks
AllowOverride None
AllowOverride None
Order allow,deny
Allow from all
AllowOverride none
Require valid-user
AuthName "This is to prevent Google from indexing the sites."
AuthType Basic
AuthUserFile /var/www/htpasswd
Require valid-user
Order allow,deny
# This makes subdomains from subdirectories
ServerAdmin webmaster@example.com
ServerName *.example.com
VirtualDocumentRoot /var/www/%1
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
AuthName "This is to prevent Google from indexing the sites."
AuthType Basic
AuthUserFile /var/www/htpasswd
Require valid-user
# e.g. Screencast is a Java Applet and doesn't use the browser authentication
# so allow the needed AJAX endpoint without authentication
SetEnvIfNoCase Request_URI ".*tiki-ajax_services.php.*" NOPASSWD=true
Satisfy Any
Allow from env=NOPASSWD
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/sub.example.com-error.log
CustomLog ${APACHE_LOG_DIR}/sub.example.com-access.log combined