Page 1 of 1

http nach https umleiten ....

Posted: 2003-07-16 22:18
by Outlaw
Hallo Leute,

ich habe eine Subdomain ala webmail.meinedomain.tld, die aber verschlüsselt ist, also per https aufgerufen wird.

Nun möchte ich aber der Einfachheit halber eine Umleitung haben, die

http://webmail.meinedomain.tld

automatisch und sofort auf

https://webmail.meinedomain.tld

umleitet, da ich nicht immer das https:// davor hängen möchte ....

Wie stelle ich das am besten an ?? Kann ich das über die httpd.conf mit nem VirtualHols lösen ?? Was muss ich da als Pfad dann angeben ??

Gruß Outi

Re: http nach https umleiten ....

Posted: 2003-07-16 22:31
by sascha
Im VHost statt des DocumentRoots

Code: Select all

RedirectPermanent https://webmail.meinedomain.tld 
einfügen.

Re: http nach https umleiten ....

Posted: 2003-07-16 23:49
by Outlaw
Hallo Sascha,

danke für die Antwort (auch zum Postfixproblem). ich dachte mir schon sowas aber bei den Beispielen in der VirtualHost Datei war immer ein "/" dazwischen, was mich auch irritiert hat und natürlich nie gefunzt hat. Weglassen habe ich mich nie getraut .... ;):D

Gruß Outi

Re: http nach https umleiten ....

Posted: 2003-07-17 00:33
by sascha
Hm den Slash hatte ich vergessen. Gehts denn auch ohne? :wink:

Re: http nach https umleiten ....

Posted: 2003-07-17 16:02
by Outlaw
Weiss ich noch nicht, bin noch nicht dazu gekommen. Mit gings jedenfalls nicht ....

Aber ich checke das heute abend nochmal ....

Gruß Outi

Re: http nach https umleiten ....

Posted: 2003-07-17 22:22
by Outlaw
So, habe nun getestet, Ergebnis ohne Slash:

Code: Select all

Syntax error on line XXXX of /etc/httpd/httpd.conf:
RedirectPermanent takes two arguments, a document to be redirected, then the destination URL
Ergebnis mit Slash (RedirectPermanent / https://webmail.meinedomain.tld):

Funzt einwandfrei !!

Warum hat das vorher nie geklappt ?? Egal nun gehts .... :):)

Gruß Outi