View Full Version : http to https redirection for port 81 - ISPConfig
TheMaximumWeasel
28th May 2007, 13:05
I chose https in the ispconfig installation and I know in normal apache it is possible to make apache automatically redirect to https but I dont know how to do it for apache that is being used my ispconfig.
Basically when someone connects to my server over port 81 not only do I want it to switch to https I want it to go to my domain so the SSL certificate matches up.
Max
The ISPConfg apache is a normal apache. The config file is in /root/ispconfig/httpd/conf/httpd.conf
TheMaximumWeasel
29th May 2007, 02:46
how would I make a virtual host that will redirect? because normally I have a virtual host sit on port 80 and redirect to https which is 443. but on port 81 because http and https are on the same port it redirects over and over because the virtual host is called even in https.
Max
falko
29th May 2007, 15:00
You can either use http or https on port 81, but not both at the same time.
TheMaximumWeasel
30th May 2007, 01:11
I have it set to https. So when someone goes to http://mydomain.com and they get that bad request thing how can I have that automatically take whats after the url and switch it to https. For example if someone goes to http://maxweisel.com:81/webmail it will change to https://maxweisel.com:81/webmail. Also if someone goes to http://myotherdomain.com:81/webmail it will redirect to https://maxweisel.com:81/webmail.
the reason I have for keeping the domain maxweisel.com is to keep the message saying the domain in the certificate doesnt match the domain from coming up.
Max
falko
30th May 2007, 17:09
I have it set to https. So when someone goes to http://mydomain.com and they get that bad request thing how can I have that automatically take whats after the url and switch it to https. For example if someone goes to http://maxweisel.com:81/webmail it will change to https://maxweisel.com:81/webmail. Also if someone goes to http://myotherdomain.com:81/webmail it will redirect to https://maxweisel.com:81/webmail.
That's not possible.
TheMaximumWeasel
31st May 2007, 00:30
k, I kinda figured because you cant accept http requests and https on port 80 so I just switch my ISPConfig install to http.
Max
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.