[PLUG] Mandrake 9.1 Virtual server problem

Derek Loree drl at drloree.com
Tue May 27 07:47:02 UTC 2003


On Tue, 2003-05-27 at 03:26, James wrote:
> Derek Loree wrote:
> :> httpd2.conf:
> :> 
> :> <VirtualHost 63.224.195.57>
> :> DocumentRoot /var/www/html/powwowdance
> :> ServerName powwowdance.com
> :            ^^^^
> :Here is where you need to have a machine name (like www.powwowdance.com
> :or dance.powwowdance.com or pow.powwowdance.com).
> 
> I thought I had to have BOTH servernames.. one with the www, and one
> without the www so ti will work with http://powwowdance.com as well as
> http://www.powwowdance.com  .. that's how I have it set up on my old
> werver and it works both ways.

That is fine, you didn't have it set up that way though.
> 
> 
> :I don't understand why you want two virtual hosts pointing to the same
> :directory with the same virtual host name.  Something needs to be unique
> :about this entry to make it useful.
> 
> I don't know.. I didn't know which directory to place the virtual host
> names, so I did it in both.. just to be sure.  If it is in both, will it
> conflict and cause things not to work?  

Sure, that will work, but both virtual hosts in tour httpd2.conf file
were just powwowdance.com and all of your testing was to
www.powwowdance.com, which, as you found out, won't work.

Derek Loree






More information about the PLUG mailing list