httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor Schneider" <>
Subject Re: [users@httpd] Problem with NameVirtualHost and VirtualHost
Date Wed, 21 Nov 2007 16:32:32 GMT
Hi Owen!

On Nov 21, 2007 4:59 PM, Boyle Owen <> wrote:
> That's about right... You didn't (mercifully :-) show us your complete config,
well, if u need some reading-stuff. I'll send them to ypu right away
or, if you prefer, post 'em here on the list ;)

> but I'm guessing you just used ServerAlias directives instead of ServerName.

absolutely correct

> As far as VH resolution is concerned, they are equivalent. You might get problems with
redirect and self-referential URLs, however.


Could you specify what you mean by this?

What I did to every vhost is, that I specified a vhost on port80 and
one on 443.
When coming in through port 80, then a small rule via mod_rewrite
redirects the request to port 443, and this also works like charm.

Here's the rule:

RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1

> It is true that if you don't care about browser warnings, or that the session is encrypted
using the cert from the first VH only, then name-based VHing under SSL will *seem* to work.
It's fine for a test environment but this is no solution for the real world (would you type
your credit card number into a website that seemed to be called but your browser
was complaining that the certificate was registered to

I absolutely agree with you on that one. However, it's just a
test-server for internal development mirroring the production-server's
environment, and the struggle with our network-admins allowing us
additional IPs for that server is something I'd rather avoid ;)


what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message