rendered paste body
NameVirtualHost *
<VirtualHost *>
ServerAdmin tim@timkeir.co.nz
ServerName www.academybooks.co.nz
ServerAlias academybooks.co.nz
RewriteEngine on
RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 5
DirectoryIndex index.html index.php
DocumentRoot /var/www/www.academybooks.co.nz/htdocs/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/www.academybooks.co.nz/htdocs/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
RewriteRule ^/test/([0-9]+)$ /test/$1/ [R]
RewriteRule ^/test/([0-9]+)$ /test.php?id=$1 [L]
</Directory>
ScriptAlias /cgi-bin/ /var/www/www.academybooks.co.nz/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>