Re: Apache Serveralias

From: Eike Bernhardt <eike(at)unorganized.net>
Date: Mon, 20 Oct 2003 15:39:38 +0200

Moin!

On Mon Oct 20 10:29:50 2003 CEST Hannes Widmer wrote:

> if ($_SERVER["SERVER_PORT"] == "443") {
> switch ($_SERVER["HTTP_HOST"]) {
> case "webmail.domain1.ch":
> header("Location: https://webmail.domain1.ch/domain1_webmail");
> break;
> case "webmail2.domain2.ch":
> header("Location: https://webmail.domain2.ch/domain2_webmail
> bmail");
> break;
> default:
> print "Action not allowed !!!";
> }

Erm, wenn ich das richtig sehe hast du doch zwei Virtual Host, oder?
Beide laufen auf dem selben https-Server, haben also auch ein
gemeinsames Zertifikat, das maximal fuer einen der beiden passt (also im
Zertifikat angegebener Hostname passt maximal auf einen der beiden
Virtual Hosts)?

Warum machst du dann nicht einfach

<VirtualHost webmail1.domain1.ch:443>
        <IfModule mod_ssl.c>
        ... SSL Einstellungen
        </IfMoudule>
        DocumentRoot /data/www/webmail1.domain1.ch/
        ... Normale Einstellungen
</VirtualHost>
<VirtualHost webmail2.domain2.ch:443>
        <IfModule mod_ssl.c>
        ... SSL Einstellungen
        </IfMoudule>
        DocumentRoot /data/www/webmail2.domain2.ch/
        ... Normale Einstellungen
</VirtualHost>

Oder willst du was anderes erreichen?

Tschoe!

-- 
Eike Bernhardt              http://unorganized.net/                ICQ: 11256658
"Wenn die letzte LAN geschlossen, Counterstrike verboten und das Internet
 zensiert ist, werdet ihr merken, daß man seine Kinder doch erziehen muß."
 -- unbekannter Spieler
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 20 Oct 2003 - 15:42:47 CEST

search this site