6
1
I am curious as to what a port number does. Are there specific port numbers for specific things?
I know there is port 80 and I heard of 8000 in passing. I don't know why they are called that and what it actually means.
Could I have a web page that is say example.com:10? I say 10 as a random number. Does it matter what you call a port? Where do these numbers come from? How would I go about setting up a development environment with a port number and why would I want to do that? During development I see all sorts of port numbers based on who they are. I always wondered where the numbers come from and how they configure the server to make it work.
"As for development, you might need to be able to specify the port number to not clash with other stuff, but functionality should not change."
Can't you specify a number of virtual hosts to not clash with your stuff? That way you could say dev1.local is stuff in /www/html and dev2.local is stuff in /www/fun. Can't you even specify in the virtual hosts what port they use too? – None – 2010-08-14T17:17:19.967
I ask because I see john is working in his envirnment using dev.local:8081 and bill is using dev.local:8082. I don't understand why they use different port numbers rather than just changing the nameserver (dev.local) to something different and use 80 so then you don't have to type a port number. – None – 2010-08-14T17:17:56.270
I would say its a matter of preference I suppose. But typically, your right you could use host headers as well and keep everything on port 80 or 8081 or whatever. perhaps there are other requirements at play here regarding the host headers. – Tommy – 2010-08-14T21:06:04.363