HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   ISPConfig 3 Priority Support (http://www.howtoforge.com/forums/forumdisplay.php?f=35)
-   -   http vs https question (http://www.howtoforge.com/forums/showthread.php?t=61635)

ganewbie 28th April 2013 05:17

http vs https question
 
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

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<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>
</body></html>

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,

George

till 28th April 2013 18:47

Quote:

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?
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.

Quote:

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?
Please see here:

http://www.faqforge.com/linux/contro...che-webserver/

Quote:

3- What is the range of ports that I could use to change the default instead of 8080?
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.


All times are GMT +2. The time now is 04:34.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.