Question

I am trying to use mongoose web server. I installed it, works fine. I could be able to view my index page as localhost:8080. I want want to change it to, myfile.localhost/ How can i change it?

I tried the following, but it isn't working.

I added the following line in C:\Windows\System32\Drivers\etc\hosts

 127.0.0.1     myfile.localhost (not working)
 127.0.0.1:8080     myfile.localhost (not working)
 8080 myfile.localhost (not working)

How can i fix it?

Was it helpful?

Solution

I got it working,

127.0.0.1       myfile.localhost
localhost       myfile.localhost

8080 port is already in use. So made mongoose use port 80. (In mongoose setting., set listening ports to 80)

Problem solved!!!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top