Skip to content

Instantly share code, notes, and snippets.

@josh-taylor
Last active December 30, 2015 00:39
Show Gist options
  • Save josh-taylor/7750883 to your computer and use it in GitHub Desktop.
Save josh-taylor/7750883 to your computer and use it in GitHub Desktop.
My VirtualDocumentRoot setup
<IfModule dir_module>
DirectoryIndex index.html default.html index.php
</IfModule>
<IfModule mime_module>
AddHandler php5-script .phtml
AddHandler php5-script .php
</IfModule>
<VirtualHost *:80>
UseCanonicalName Off
VirtualDocumentRoot /Users/Josh/Server/vhosts/%0/httpdocs
CustomLog "/Users/Josh/Server/logs/access_log.txt" combined
ErrorLog "/Users/Josh/Server/logs/error_log.txt"
<Directory "/Users/Josh/Server/vhosts/*/httpdocs">
AllowOverride all
RewriteEngine On
RewriteBase /
</Directory>
LogLevel debug
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment