Skip to content

Instantly share code, notes, and snippets.

@mlebkowski
Created July 28, 2014 13:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlebkowski/0fc115f55dc456502dd6 to your computer and use it in GitHub Desktop.
Save mlebkowski/0fc115f55dc456502dd6 to your computer and use it in GitHub Desktop.
*.dev vhosts
# /etc/apache2/extra/httpd-vhosts.conf
<Directory /Volumes/Dev>
Require all granted
AllowOverride All
</Directory>
<VirtualHost *:80>
ServerName dev
ServerAlias *.dev
CustomLog /var/log/apache2/dev.access_log vcommon
ErrorLog /var/log/apache2/dev.error_log
VirtualDocumentRoot /Volumes/Dev/%-2.0.%-1.0/web/
Options +FollowSymLinks
DirectoryIndex index.php
FallbackResource /index.php
PHP_value auto_prepend_file /Volumes/Dev/xhprof.dev/inc/prepend.php
PHP_value auto_append_file /Volumes/Dev/xhprof.dev/inc/append.php
SetEnv Debug 1
</VirtualHost>
<VirtualHost *:80>
ServerName vcap.me
ServerAlias *.vcap.me *.localtest.me *.lvh.me *.fuf.me
CustomLog /var/log/apache2/dev.access_log vcommon
ErrorLog /var/log/apache2/dev.error_log
VirtualDocumentRoot /Volumes/Dev/%-3.0.dev/web/
Options +FollowSymLinks
DirectoryIndex index.php
FallbackResource /index.php
PHP_value auto_prepend_file /Volumes/Dev/xhprof.dev/inc/prepend.php
PHP_value auto_append_file /Volumes/Dev/xhprof.dev/inc/append.php
SetEnv Debug 1
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment