Page 1 of 1

localhost:8080 vs localhost

PostPosted: 12. January 2016 02:15
by stman
As of now my xampp installation opens the index.html page using localhost:8080 (made the changes in config file from 80 to 8080). How can I make localhost/index.html work?

Thanks

Re: localhost:8080 vs localhost

PostPosted: 12. January 2016 03:08
by Altrea
change Apache to listen on port 80. Thats the only way.

Re: localhost:8080 vs localhost

PostPosted: 12. January 2016 06:58
by stman
Well how does the computer know localhost is port 80?
Is that coded into xampp or into Windows?

Re: localhost:8080 vs localhost

PostPosted: 12. January 2016 12:36
by Altrea
If no port is given in the URL it is defined by the used protocol.
If your URL starts with http:// port 80 is used, if it is https:// port 443 is used, ftp:// port 21, etc.

Re: localhost:8080 vs localhost

PostPosted: 12. January 2016 13:54
by Nobbie
stman wrote:Well how does the computer know localhost is port 80?
Is that coded into xampp or into Windows?


Port 80 is the default Port for protocoll http, thus http://localhost:80 is the same as http://localhost

Re: localhost:8080 vs localhost

PostPosted: 12. January 2016 18:21
by stman
Oh ok, so it is built into the browsers. right?