Tag Archives: virtualhosts

Configuring Apache with two VirtualHosts

The begining Start Apache: sudo apachectl start Enabling VirtualHosts Open httpd.conf file sudo mate /etc/apache2/httpd.conf Find the following line: #Include /private/etc/apache2/extra/httpd-vhosts.conf and uncomment it. To enable PHP5, find: #LoadModule php5_module /opt/local/apache2/modules/libphp5.so and uncomment it as well. Adding VirtualHosts # # Use name-based virtual hosting. # NameVirtualHost *:80     # # VirtualHost example: # Almost… Read More »