http vs https question

Discussion in 'ISPConfig 3 Priority Support' started by ganewbie, Apr 28, 2013.

  1. ganewbie

    ganewbie Member HowtoForge Supporter

    Thanks for the great support,
    I have installed ssl for the server and for the first site and things seems to be in order.

    However, I have couple of questions:
    1- when I try to login to the panel with https://mydomain.tld:8080 it works ;-) , but when i enter http://mydomain.tld:8080 I get to see html error code such as

    <title>400 Bad Request</title>
    <h1>Bad Request</h1>
    <p>Your browser sent a request that this server could not understand.<br />
    Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
    Instead use the HTTPS scheme to access this URL, please.<br />
    <blockquote>Hint: <a href="https://server.mydomain.tld:8080/"><b>https://server.mydomain.tld:8080/</b></a></blockquote></p>

    Is there a way to redirect the address to the (https) to avoid showing some detail that I would prefer not show? and it make it look more professional?

    2- My first site works in both http and https, how do I make it to redirect the to the https even if I type in the address bar http only?

    3- What is the range of ports that I could use to change the default instead of 8080?

    Thanks in advance,

    Last edited: Apr 28, 2013
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No, thats not possible. This error message is a low level error that occurs because the browser sent wrong data. Unlike port 443 vs. port 80, you can not do a redirect on custom ports like 8080 in such a case as there is no corresponding http vs. https port.

    Please see here:

    You may use any free port. Ports can be in the range from 1 to 65000. With:

    netstat -tap

    you can see which ports are in use on your server.

Share This Page