Skip to content

Instantly share code, notes, and snippets.

@manhg
Created February 24, 2014 10:10
Show Gist options
  • Save manhg/9185021 to your computer and use it in GitHub Desktop.
Save manhg/9185021 to your computer and use it in GitHub Desktop.
MacOSX apache development config
ServerName localhost
Listen 80
NameVirtualHost *:80
LogFormat "%h %l %u %t \"%r\" %>s %b" common
# General
<Directory "/path/projects">
php_admin_flag engine on
AllowOverride All
Options Indexes FollowSymLinks +ExecCGI -MultiViews
Order allow,deny
Allow from all
</Directory>
# An example. This will be accessible from http://127.0.0.1:5001
Listen 5001
<VirtualHost *:5001>
DocumentRoot "/path/projects/an_example"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment