Skip to content

Instantly share code, notes, and snippets.

@MikeiLL
Created November 1, 2015 22:29
Show Gist options
  • Save MikeiLL/ca662c630b21fb70db91 to your computer and use it in GitHub Desktop.
Save MikeiLL/ca662c630b21fb70db91 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName localhost
ServerAlias *.localhost
VirtualDocumentRoot /Users/mikekilmer/Sites/%0
php_admin_value auto_prepend_file /Applications/MAMP/conf/apache/extra/setdocroot.php
# content of above file
# $_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME']);
RewriteLogLevel 3
RewriteLog "/Applications/MAMP/logs/rewrite.log"
<Directory /Users/mikekilmer/Sites>
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
@MikeiLL
Copy link
Author

MikeiLL commented Feb 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment