http to https redirection for port 81 - ISPConfig

Discussion in 'Installation/Configuration' started by TheMaximumWeasel, May 28, 2007.

  1. TheMaximumWeasel

    TheMaximumWeasel New Member

    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
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The ISPConfg apache is a normal apache. The config file is in /root/ispconfig/httpd/conf/httpd.conf
     
  3. TheMaximumWeasel

    TheMaximumWeasel New Member

    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
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You can either use http or https on port 81, but not both at the same time.
     
  5. TheMaximumWeasel

    TheMaximumWeasel New Member

    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
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

  7. TheMaximumWeasel

    TheMaximumWeasel New Member

    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
     

Share This Page