South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
# Prevent access to .svn folders by showing Not Found page - this is for all the virtualhosts
RedirectMatch 404 /\\..*(/.*|$)
NameVirtualHost *:80
<VirtualHost *:80>
# Server administrator E-mail
ServerAdmin [email protected]
# Make sure that you don't have anything stored in this folder below
DocumentRoot /var/www/html
# Primary identifier of virtual host, which will be ignored/used by default since this file will be loaded first
ServerName intrusions
ErrorLog logs/intrusions-error_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{Host}i\"" combined_with_host
CustomLog logs/intrusions-access_log combined_with_host
</VirtualHost>
<VirtualHost *:80>
# Server administrator E-mail
ServerAdmin [email protected]
# Folder with all website contents
DocumentRoot /var/www/mydomain_www
# Primary identifier of virtual host
ServerName www.mydomain.co.za
# Aliases of virtual host
ServerAlias mydomain.co.za
# Logging
ErrorLog logs/mydomain_www-error_log
CustomLog logs/mydomain_www-access_log common
</VirtualHost>
<Directory "/var/www/mydomain_www">
# Allow sym-links, but not indexes
Options FollowSymLinks
# Allow overriding with .htaccess files
AllowOverride All
# Allow everyone access
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
# Server administrator E-mail
ServerAdmin [email protected]
# Folder with all website admin contents
DocumentRoot /var/www/mydomain_admin
# Primary identifier of virtual host
ServerName admin.mydomain.co.za
# Logging
ErrorLog logs/mydomain_admin-error_log
CustomLog logs/mydomain_admin-access_log common
</VirtualHost>
<Directory "/var/www/mydomain_admin">
# Allow sym-links, but not indexes
Options FollowSymLinks
# Allow overriding with .htaccess files
AllowOverride All
# Allow only 10.*.*.* access
Order allow,deny
Allow from 10.
</Directory>
<IfModule mod_deflate.c>
# these are known to be safe with MSIE 6
AddOutputFilterByType DEFLATE text/html text/plain text/xml
# everything else may cause problems with MSIE 6
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript text/javascript
AddOutputFilterByType DEFLATE application/rss+xml
</IfModule>