Article:
  Location, Location, Location: Tips for Storing Web Site Files
Subject:   Re: Use NetInfo Manager instead of /etc/hosts and other comments
Date:   2003-05-19 14:10:10
From:   icalshare
Response to: Use NetInfo Manager instead of /etc/hosts and other comments

Good idea on using NetInfo Manager -- that sounds much easier, especially for people who prefer a GUI option.


...


As for using 'NameVirtualHost *', yes, this works fine if you only intend to use one virtual host.


But, if you wish to use several hosts, and more importantly, wish to use other projects in your Sites folder *without* using Alias or VirtualHost, this will not work.


We need to explicitly name 127.0.0.1, or otherwise Apache sends us straight to the virtual host.


Best,
Patrick

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Re: Use NetInfo Manager instead of /etc/hosts and other comments
    2003-05-20 16:28:39  maarky [View]

    Quote "As for using 'NameVirtualHost *', yes, this works fine if you only intend to use one virtual host."

    I use 'NameVirtualHost *' and yet I have no problems despite having set up 12 virtual hosts. From my experiences explicitly naming 127.0.0.1 is not necessary. I could be overlooking something, but it does not seem to be affecting any aliases, though the only ones I have are the standard icons and manual aliases which are there by default and they work fine in all of my virtual domains.

    You mentioned there would be problems using "other projects in your Sites folder *without* using Alias or VirtualHost". What do you mean by this? I don't have any problems with the sites folders in /Library/WebServer/Documents or /Users/userName/Sites by going to localhost or localhost/~username. If we don't specify 127.0.0.1 which virtual host are we sent to? Am I missing something because everything at least seems to be working just fine for me.

    Thanks