On Fri, Oct 02, 1998, Lutz Pressler wrote:

> I just set up an Apache 1.3.2 with mod_ssl 2.1b5 and PHP3. Works fine in
> general. But:
> 
> This is - at the moment - a setup without virtual servers. Relevant parts
> of httpd.conf:
> 
> <IfDefine SSL>
> Listen www-test.SerNet.DE:80
> Listen www-test.SerNet.DE:443
> </IfDefine>
> 
> BindAddress www-test.SerNet.DE
> 
> ServerName www-test.SerNet.DE
> 
> This works fine with http, but if https requests are handled ServerName
> doesn't seem to be honored. Redirects use the canonical host name -
> which doesn't work.

A few comments:

1. I would use IP-addresses on the Listen directive or
   when your DNS is temporarily unavailable or messed
   up you're wondering why your webserver doesn't work.

2. When using Listen you don't need BindAddress.

3. The ServerName should be set both in the main server
   context _and_ the virtual host section.

3. For using the canonical name (i.e. one you specified
   by ServerName) you have to additionally use "UseCanonicalName on".

Then all things should work fine...
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl)   www.engelschall.com/sw/mod_ssl/
Official Support Mailing List               [EMAIL PROTECTED]
Automated List Manager                       [EMAIL PROTECTED]

Reply via email to