webserver on port 81 - Removing port Number from URL

Problems with the Windows version of XAMPP, questions, comments, and anything related.

webserver on port 81 - Removing port Number from URL

Postby ichkeria » 26. December 2017 17:33

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
ichkeria
 
Posts: 6
Joined: 26. December 2017 17:25
XAMPP version: 5.6.32
Operating System: windows

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

Postby Altrea » 26. December 2017 22:28

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

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

Postby ichkeria » 26. December 2017 23:00

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
ichkeria
 
Posts: 6
Joined: 26. December 2017 17:25
XAMPP version: 5.6.32
Operating System: windows

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

Postby Nobbie » 27. December 2017 10:32

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.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

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

Postby ichkeria » 27. December 2017 11:15

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
ichkeria
 
Posts: 6
Joined: 26. December 2017 17:25
XAMPP version: 5.6.32
Operating System: windows


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 114 guests