# Uncomment this line and set it up with your actual webmaster email
# or with your real email.
#ServerAdmin webmaster@SERVER_DOMAIN
# Your actual domain name, on witch this virtual host is available.
ServerName usvn.SERVER_DOMAIN
# You may want your site to be available on other domain names, this is
# what alias are for.
# You can use the * wildcard caracter to match multiple sub-domains.
#ServerAlias svn.my-other-domain.com
# The error log and access log. This can be used by awstats
# Note : since we keed theses logs in /var/log/apache2, they are
# automaticaly rotated by logrotate :D.
ErrorLog /var/log/apache2/usvn.SERVER_DOMAIN-error.log
LogLevel warn
CustomLog /var/log/apache2/usvn.SERVER_DOMAIN-access.log combined
# Theses lines only apply of the rewrite module is enabled.
# This is a security enhancement recommanded by the nessus tool.
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
# The root folder of this virtual host.
DocumentRoot /opt/usvn
# Some options for the root folder.
# Read Apache 2 documentation to know exactly what is done.
Options Indexes FollowSymLinks MultiViews
# By default, we do not accept overrides using .htaccess file.
# If you want to enable overrides, you should read:
# http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
AllowOverride None
# This lines protect the config.ini file from
# being accessed by the users.
Order Allow,Deny
Deny from all
Order allow,deny
Allow from all
# This lines setup the URL rewriting for USVN.
RewriteEngine on
RewriteCond %{REQUEST_URI} !/install*
RewriteBase /
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php