Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to connect to a HTTP URL (for example, http://www.asdfg.com) over port 443?

Or only HTTPS URLs (for example, https://www.asdfg.com) can be connected through port 443?

I have a proxy server configured to allow only through port 443. When I try to connect to a HTTP URL, I get a 504 Gateway Timeout error.

If I change the "http" to "https" in the URL and try to connect without proxy, I get the message "Requested resource not found".

What is the reason for this behavior?

(There are a lot of similiar questions here but mine is a very straight forward one.)

share|improve this question
add comment

3 Answers 3

You could try http://mydomain.com:443/ which would hopefully force HTTP traffic over port 443.

However, you might find if your proxy is set up[ to only allow port 443, it also only allows HTTPS traffic in which case the above would not work.

share|improve this answer
    
So, is it possible to configure 443 to allow http urls ? –  SpikETidE Apr 26 '12 at 13:26
1  
You can serve up http on literally any port you desire ports 1 - 65535 but if this server is serving https on 443 and you try to go http on 443 it is a no-go –  dc5553 Apr 26 '12 at 13:48
2  
Phil is correct. https ://standardhttponlysite won't work. It tells the browser to try using ssl AND do so on port 443. http :// standard:443 would work. But only if the remote site is configured to serve unencrypted traffic over that port. Arbitrary Internet sites won't be. –  Quinten Apr 26 '12 at 13:49
add comment

Port can be reassigned to confuse people etc., so if you have a plain http server actually listening on port 443 then your http url should work, and vice versa. However the restriction you are facing may be more than just the port. Since ssl and http are different protocols, it is trivial to figure out that the packets are not http and your connection is thus blocked. It is probably easier to do ssl tunneling if your http traffic in this case.

share|improve this answer
add comment

The ports are merely "Assigned standards". The determining factor is the server software and the client software.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.