#1  
Old 28th April 2013, 05:17
ganewbie ganewbie is offline
HowtoForge Supporter
 
Join Date: Apr 2013
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default 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

Last edited by ganewbie; 28th April 2013 at 05:27. Reason: add more questions
Reply With Quote
Sponsored Links
  #2  
Old 28th April 2013, 18:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
 
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
ganewbie (29th April 2013)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig: from http to https & from https to http Hans Tips/Tricks/Mods 13 12th March 2013 23:22
haproxy with stunnel problem abubin Server Operation 6 10th April 2012 15:08
3 Question SSL cert, https redirect, WebFtp, serkejal Installation/Configuration 8 19th April 2011 19:10
Can ISPConfig listen on http & https? spidie Installation/Configuration 2 31st July 2007 02:53
http redirect to https derfy Feature Requests 2 24th June 2006 21:04


All times are GMT +2. The time now is 00:22.


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