On Fri, 9 Jul 1999 [EMAIL PROTECTED] wrote:
> I've been trying to get apache web server to work properly. As far as I can
> tell everything installs properly. I get the Default page. What I am
> trying to do is configure it for Name Based Virtual hosts. I've followed as
> much documentation as I can find. I have 1 IP address to work with, the one
> assigned to the Server. This was a standard Server Install. I only added
> these lines to the end of httpd.conf file:
>
>
> NameVirtualHost xxx.xxx.xxx.xxx
>
> <VirtualHost xxx.xxx.xxx.xxx>
I'm sure our friend @netrevolution can correct me if i'm wrong but
shouldn't <VirtualHost xxx.xxx.xxx.xxx> be <VirtualHost www.domain1.com>
this is the line that tells it where to listen
ServerName tells it what host to print
so you could have say connections to www.domain1.com
replace the address the user typed with www.domain3.com
so they get the first page from www.domain1.com and subsequent clicks
reroute to a third server
(probably not a good example disregard the second paragraph should you
feel inclined)
> ServerName www.domain1.com
> DocumentRoot /home/httpd/wwwdomain1com
> </VirtualHost>
>
> <VirtualHost xxx.xxx.xxx.xxx>
> ServerName www.domain2.com
> DocumentRoot /home/httpd/wwwdomain2com
> </VirtualHost>
>
>
>
>
>
> Also DNS record is like this
>
> Domain 1:
> www A xxx.xxx.xxx.xxx
>
> Domain 2:
> www A xxx.xxx.xxx.xxx
>
>
>
> When I get to any of these sites, it seems to ignore the VirtualHost
> Directive and display the content of the Default DocumentRoot
> /home/httpd/html.
>
> Do I need to do something else to activate NameBased Virtual Hosting?
> I really don't know much about linux and mostly work on Windows systems.
> Any help will be appreciated
>
>
>
>
>
>
> Patrick Hermanto
> Savvy Networks
> [EMAIL PROTECTED]
>
>