HTTP has some well-known alternative ports, like 8080, etc.
If I need to deploy any service which is served through secure HTTP, or maybe I need to assign any port to a HTTPS service on my local machine, but I already have another HTTPS service handling the 443 port, is there any convention about which port to use?
Side note: this question was posted for reference means since the answer was already posted to a question, but that question was not asking exactly that - anyway the answer was collecting lots of positive votes.
We can use any available port for HTTPS, however, for the sake of convention, 443 and 8443 are assigned for HTTPS (browsers automatically prefix with https when these port numbers are used), but we can even run HTTPS on port 80.
A website and a server connection is made via port either by 80 or 443. Port 80 is used for HTTP service, which does not provide any security for the data to be travelled, while port 443 is used for HTTPS service that's the main purpose of securing the communication channel.
From the Configuration menu, select Security. The Security configuration page opens. Under HTTPS configuration, change the default HTTP and HTTPS port numbers. Click Apply when you're done.
Solution 1. Short answer: yes, you can! Long answer comes here: Can I use another port other than 443 for SSL communication? SSL is in no way tied to a single port value; in fact, as a protocol, it can be used over any transport medium, as long as that medium provides a bidirectional stream for arbitrary bytes.
There is no standard about that, but port 8443 is sometimes known as the https-alt, and it seems the only one being popularly used as alternative HTTPS port.
It may have become popular because of mod_nss (an HTTPD module alternative to mod_ssl) using it on its default configuration.
As already stated, I'd say there's no standard alternative port to use. It's up to you which port to use.
Personally I like to use 443xx
with xx
being any 2‑digit number, e.g. 44301
. According to the Wikipedia list of TCP/UDP port numbers, the ports 44300
–44399
are unused. (For multiple HTTP ports I use 80xx
in the same way. 8008
and 8080
are officially alternative ports for HTTP.)
Note that I use such alternative ports only for temporary or personal web services. If you want to run multiple web services on the same IP in production, I suggest you to set up a SNI proxy such as sniproxy. (However, if your webservices are all running on the same web server such as Apache, setting up virtual hosts is sufficient.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With