Skip to content

Instantly share code, notes, and snippets.

@EHLOVader
Created December 13, 2011 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EHLOVader/1469748 to your computer and use it in GitHub Desktop.
Save EHLOVader/1469748 to your computer and use it in GitHub Desktop.
http conf for dynamic local dev
<VirtualHost *:80>
ServerAlias *.svn.branch.*
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
RewriteLog "C:\WebDev\Apache\logs\mod_rewrite_svn.log"
RewriteLogLevel 1
VirtualDocumentRoot "C:\WebDev\SVN\%1\branches\%5+"
<Directory "C:\WebDev\SVN">
#...
Options Indexes +FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#RewriteEngine On
#
# Controls who can get stuff from this server.
#
Order allow,deny
#Allow from 127.0.0
Allow from all
#...
</Directory>
</VirtualHost>
#project domain mapping
127.0.0.1 project.domain.svn
127.0.0.1 project.domain.branch.0.0.0
127.0.0.1 project.domain.branch.0.0.1
127.0.0.1 project.domain.branch.0.0.2
#....
127.0.0.1 project.domain.tag.0.0.0
127.0.0.1 project.domain.tag.0.0.1
127.0.0.1 project.domain.tag.0.0.2
#....
<VirtualHost *:80>
ServerAlias *.svn.tag.*
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
RewriteLog "C:\WebDev\Apache\logs\mod_rewrite_svn.log"
RewriteLogLevel 1
VirtualDocumentRoot "C:\WebDev\SVN\%1\tags\%5+"
<Directory "C:\WebDev\SVN">
#...
Options Indexes +FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#RewriteEngine On
#
# Controls who can get stuff from this server.
#
Order allow,deny
#Allow from 127.0.0
Allow from all
#...
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAlias *.domain.svn
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
RewriteLog "C:\WebDev\Apache\logs\mod_rewrite_svn.log"
RewriteLogLevel 1
VirtualDocumentRoot "C:\WebDev\SVN\%1\Trunk"
<Directory "C:\WebDev\SVN">
#...
Options Indexes +FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#RewriteEngine On
#
# Controls who can get stuff from this server.
#
Order allow,deny
#Allow from 127.0.0
Allow from all
#...
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment