Skip to content

Instantly share code, notes, and snippets.

@aszel
Created January 11, 2015 12:52
Show Gist options
  • Save aszel/9eee58d9b6246c457a1b to your computer and use it in GitHub Desktop.
Save aszel/9eee58d9b6246c457a1b to your computer and use it in GitHub Desktop.
Apache config on Mac
## enable vhosts
sudo vim /etc/apache/httpd.conf
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
## create vhost and set directory
sudo vim /etc/apache/extra/httpd-vhosts.conf
<VirtualHost *:80 >
ServerName umpeople.local
ServerAlias www.umpeople.local
ServerAdmin martinbecker.de+umpeople-local@gmail.com
DocumentRoot "/Users/martin/www/umColleagues"
ErrorLog "/private/var/log/apache2/umpeople-error_log"
CustomLog "/private/var/log/apache2/umpeople-access_log" common
<Directory "/Users/martin/www/umColleagues">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
## restart apache
sudo apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment