Page 1 of 1

webserver on port 81 - Removing port Number from URL

PostPosted: 26. December 2017 17:33
by ichkeria
Hello

My test server is allready using port 80, and im thingking to use other than port 80 for apache
and yes, i managed to do this ..problem is within the url bar there additional port number in it, also we cant type the domain name in url bar ( we need to include port number)

im curious can we automaticaly remove the port number in url example domain:8080? or when we type the domain, we dont have to include that port number

Re: webserver on port 81 - Removing port Number from URL

PostPosted: 26. December 2017 22:28
by Altrea
Hi,

no, that is technically not possible.
If you want to omit the port number in the url (doesn't matter if there is an IP or domainname), you need to use the port number specified as default port for the used protocol. HTTPs default port is 80, so you need to use port 80 if you want to omit it.

best wishes,
Altrea

Re: webserver on port 81 - Removing port Number from URL

PostPosted: 26. December 2017 23:00
by ichkeria
Altrea wrote:Hi,

no, that is technically not possible.
If you want to omit the port number in the url (doesn't matter if there is an IP or domainname), you need to use the port number specified as default port for the used protocol. HTTPs default port is 80, so you need to use port 80 if you want to omit it.

best wishes,
Altrea



hi Altrea

so its "imposible" (i mean totally isn't any work around)? is it possible if let say im switching to linux os (centos,ubuntu etc)

no, i think i dont have any problem for https protocol (port 443, i can open that port and leave it as default on my http.conf)
i just need port 80 to be used by other service as this application listener cannot be changed other than port 80

Re: webserver on port 81 - Removing port Number from URL

PostPosted: 27. December 2017 10:32
by Nobbie
ichkeria wrote:
Altrea wrote:so its "imposible" (i mean totally isn't any work around)? is it possible if let say im switching to linux os (centos,ubuntu etc)


Yes, totally impossible. The port usually is a forced part of an URL, if you leave it out, certain default ports are assumed (depending on the protocoll). The default port for http protocoll is port 80. Leaving out the port is IDENTICAL to applying port 80. If you want to leave out the port for http, you MUST use port 80. For all OS, all Clients, all Webservers, its the standard world wide.

Thats one of the reasons we do not recoommend to use different port than port 80 in Apache. Its not standard and its ugly.

Re: webserver on port 81 - Removing port Number from URL

PostPosted: 27. December 2017 11:15
by ichkeria
Nobbie wrote:
ichkeria wrote:
Altrea wrote:so its "imposible" (i mean totally isn't any work around)? is it possible if let say im switching to linux os (centos,ubuntu etc)


Yes, totally impossible. The port usually is a forced part of an URL, if you leave it out, certain default ports are assumed (depending on the protocoll). The default port for http protocoll is port 80. Leaving out the port is IDENTICAL to applying port 80. If you want to leave out the port for http, you MUST use port 80. For all OS, all Clients, all Webservers, its the standard world wide.

Thats one of the reasons we do not recoommend to use different port than port 80 in Apache. Its not standard and its ugly.


clear as crystal...Thanks :D