Skip to content

Instantly share code, notes, and snippets.

@cjsaylor
Created June 15, 2011 02:59
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 cjsaylor/1026393 to your computer and use it in GitHub Desktop.
Save cjsaylor/1026393 to your computer and use it in GitHub Desktop.
Subdomain vhost_alias
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
<rewrite rules here>
</IfModule>
<VirtualHost *:80>
ServerAdmin youremail@domain.com
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /path/to/web/dir>
Options FollowSymLinks MultiViews
AllowOverride All
</Directory>
UseCanonicalName Off
VirtualDocumentRoot /path/to/web/dir/%1
</VirtualHost>
* A <ip addr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment