If a web server is configured to run on some other port
than port 80, then how does the client know where
to connect if it wants to connect to the web server.
Also is there any way to know which port the web server
is running on. Thanx.
Printable View
If a web server is configured to run on some other port
than port 80, then how does the client know where
to connect if it wants to connect to the web server.
Also is there any way to know which port the web server
is running on. Thanx.
It's an URL... a Univeral Resource Locator
proto://user:password@machine:port/path
...something like that, at least... (sorry - off the top of my head)
The answer may be better illustrated as an example. If JP changed the port that Apache listened to for HTTP requests to port 8080 (because programs that bind to ports above 1024 don't have to be started as root), the URL for AO would look like this: http://www.antionline.com:8080/
The default port for HTTP requests is port 80, so if you visit: http://www.antionline.com:80/ you will be shown the AO homepage.
very nice explanation...couldn't have said it better myself.