# svn.test
# Where the Physical files exist for good.
<Directory "/home/svn/sm-smf/trunk">
Options Indexes FollowSymLinks ExecCGI
AllowOverride AuthConfig Indexes
Order allow,deny
Allow from all
</Directory>
<Directory "/home/smf/svn_files">
Options Indexes FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
# Our urls.
ServerName smf-svn.test
ServerAlias postgresql.smf-svn.test sqlite.smf-svn.test mysql.svn.test
# Setup the document root to our svn files.
DocumentRoot /home/svn/sm-smf/trunk
# We will use PHP 5.3 for this.
AddHandler php5-script .php
# Put the error log somewhere nice.
ErrorLog "logs/custom/svn.test/error_php5.log"
CustomLog "logs/custom/svn.test/access-80.log" common
# Fake our Settings.php automatically :D
php_value auto_prepend_file "/home/smf/svn_files/Settings.php"
# Append a exit script at the end to handle url changes for postgresql.svn.test and sqlite.svn.test
php_value auto_append_file "/home/smf/svn_files/exit_script.php"
# Emulate some files to fake what we are really doing.
Alias /upgrade.php /home/smf/svn_files/upgrade_emulator.php
Alias /index.php /home/smf/svn_files/index_emulator.php
Alias /phpinfo.php /home/smf/public_html/phpinfo.php
</VirtualHost>