Created
January 11, 2015 12:52
-
-
Save aszel/9eee58d9b6246c457a1b to your computer and use it in GitHub Desktop.
Apache config on Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 [email protected] | |
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