What are Virtual Hosts?įrom the Apache Virtual Host documentation: In the same amount of steps (two), you can adopt a more manageable configuration. Furthermore, Apache configurations often get reset when upgrading Mac OS X. To mountaindogmedia's point, this becomes difficult to manage. Over the years, I have created many virtual hosts. You need to edit the Apache configuration to include this file and enable virtual hosts. In fact, this is the default configuration for many servers.īy default, the Apache Virtual Host configuration on Mac OS X is located in a single file: /etc/apache2/extra/nf. Indeed, mountaindogmedia, this is an easier way. I think it would be easier to manage host files and changes. Jason, have you tried a modified Include statement for virtual hosts to map a directory? So instead of /etc/apache2/extra/nf as indicated, one would use /etc/apache2/extra/vhosts/*.conf and then just create a nf for the first virtual host, and then add/edit/delete vhost files as needed. Mountaindogmedia left the following comment on my post for installing Apache, PHP, and MySQL on Mac OS X:
0 Comments
Leave a Reply. |