09/05/2015 - MAC
If you want to turn your computer into a development machine by configuring apache server and virtual hosts, you can follow steps below.
# /etc/apache2/httpd.conf
# Enable modules
LoadModule dir_module libexec/apache2/mod_dir.so
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule php5_module libexec/apache2/libphp5.so
# Update <Directory "/Library/WebServer/Documents"> options as:
Options FollowSymLinks Multiviews Indexes
AllowOverride All
# Enable configs
Include /private/etc/apache2/extra/httpd-autoindex.conf
Include /private/etc/apache2/extra/httpd-languages.conf
Include /private/etc/apache2/extra/httpd-vhosts.conf
Without entry below, http://localhost/
would give permissions error.
# /etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Library/WebServer/Documents/"
</VirtualHost>