Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Sep 2000 19:57:53 GMT
From:      "Terje Oseberg" <oseberg@hotmail.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Apache 1.3.12 Virtual Hosts on FreeBSD 4.0
Message-ID:  <F287fdhNzW3l1GM3h3v00003bdc@hotmail.com>

next in thread | raw e-mail | index | archive | help
Thanks for your help Willem.

I changed my config file to have:
NameVirtualHost 216.15.83.94

<VirtualHost alpha.etiam.net>
  DocumentRoot /data/web/
  ServerName alpha.etiam.net
</VirtualHost>

<VirtualHost www.etiam.net>
  DocumentRoot /data/web/www.etiam.net/
  ServerName www.etiam.net
  ServerAlias etiam.net
</VirtualHost>

<VirtualHost www.fineworks.com>
  DocumentRoot /data/web/www.fineworks.com/
  ServerName www.fineworks.com
  ServerAlias fineworks.com
</VirtualHost>

instead of what I had before and tried both GET queries.
It still didn't work. What I had before does work great
on FreeBSD 3.2 with the same version of Apache. I could
try your changes on my 3.2 server and see if they work
there. Do you think I should?

Hey, at this point, I'll try anything.

Terje

###########################################################

Hi,

On Tue, Sep 05, 2000 at 05:07:04PM +0000, Terje Oseberg wrote:
>I have a question regarding Virtual Hosts.
>
>I've gotten it working on FreeBSD 3.2 and it was simple and
>quick to set up. I've tried to and failed to get it to work
>on FreeBSD 4.0 with the same Apache 1.3.12. I've tried to use
>the same config file and everything. I've also tried using
>the default config file and just adding my virtual hosts
>directives at the end.
>
>Here's what I added:
>NameVirtualHost 216.15.83.94
>
><VirtualHost 216.15.83.94>

Should this be the actual name of the virtual host and not the
IP address? The first virtual host definition will be the default
default site. If a client does not support HTTP/1.1 for instance
they'll always end up on the first virtual host.

>   DocumentRoot /data/web/
>   ServerName 216.15.83.94
></VirtualHost>
>
><VirtualHost 216.15.83.94>

<VirtualHost www.etiam.net>

>   DocumentRoot /data/web/www.etiam.net/
>   ServerName www.etiam.net
>   ServerAlias etiam.net
></VirtualHost>
>
><VirtualHost 216.15.83.94>

<VirtualHost www.fineworks.com>

>   DocumentRoot /data/web/www.fineworks.com/
>   ServerName www.fineworks.com
>   ServerAlias fineworks.com
></VirtualHost>
>
># More of the same deleted.
>
>I have not set up the DNS's for this stuff, so to test it,
>please telnet to port 80 on 216.15.83.94 and do a request
>with either:
>
>GET /x.html HTTP/1.1
>host: www.fineworks.com
>
>
>or
>
>GET http://www.fineworks.com/x.html HTTP/1.0
>
>
>I believe that both should work, but both don't work, but both
>don't. You can also check out my info page at:
>http://216.15.83.94/server-info
>
>An exact copy of my httpd.conf file may be found at:
>http://216.15.83.94/httpd.conf.txt
>
>A copy of my dmesg output:
>http://216.15.83.94/dmesg.txt
>
>A copy of my current kernel config file:
>http://216.15.83.94/FIREWALL.txt
>
>Output from my ifconfig -a:
>http://216.15.83.94/ifconfig-a.txt
>
>If there's anything else anyone needs to figure this out, please
>let me know and I'll put it online.
>
>Because I've been trying everything possible in the httpd.conf file
>that might fix things, my httpd.conf file might be lacking stuff by
>now, or have way more stuff than it needs. This is because at this
>point, I'm completely unsure of what could or couldn't be causing
>this problem.
>
>Terje
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
>

Best Regards

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F287fdhNzW3l1GM3h3v00003bdc>