httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raquel Rice <raq...@thericehouse.net>
Subject Re: Virtual hosts problem
Date Wed, 13 Feb 2002 01:24:17 GMT
On Tue, 12 Feb 2002 19:16:02 -0600
David Jarrell - @home "David Jarrell - @home" <djarrell2@home.com>
wrote:

> My problem is, I would like to set up another site on my server
> where I
> could have a web page for my friends and family that would be
> totally
> separate from the troop's site. I have attempted to do this with
> apache's
> virtual host feature. However, I have run into problems.
> 
> I attached part of my httpd.conf file below. The configuration
> below gives
> odd results. The ideal results would be that
> http://bishop.troop85.org would
> get the viewer to the bishop site, and http://troop85.org or
> http://www.troop85.org would get the user to the usual troop site.
> 
> But, what's happening is that ANY address OTHER than bishop or www
> takes the
> user to the bishop page, http://bishop.troop85.org/ doesn't work
> at all, and
> the only one that gets to the boy scout site is
> http://www.troop85.org.
> 
> I've read some web pages and searched a bit in the archives to try
> to find a
> similar situation, but cannot. I would very much appreciate any
> light anyone
> can shed on this. Should there be some setting in my /etc/hosts
> file that
> I'm missing? What about my DNS? I'm using register.com, so should
> I change
> my domain alias setup? I already have one configured for pointing
> bishop.troop85.org to bishop.troop85.org. I hope I've provided
> enough info
> to get this ball rolling.
> 
> Regards,
> David Jarrell
> djarrell2@home.com
> 
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost *
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for requests without a
> known
> # server name.
> #
> <VirtualHost *>
> DocumentRoot /usr/local/www/data/bishop/html
> ServerName bishop.troop85.org
> </VirtualHost>
> <VirtualHost *>
> DocumentRoot /usr/local/www/data/PHP-nuke/html
> ServerName www.troop85.org
> </VirtualHost>

Does DNS point to each domain?

-- 
Raquel
============================================================
What do we live for, if it is not to make life less difficult for
each other?
  --George Eliot

                              
                              

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message