Localhost 's subdomain with port numbers, how to? -


We know that to add a subdomain to the localhost, we open and edit the host file, such as adding lines :

  127.0.0.1 localhost 127.0.0.1 abdulohohost 127.0.0.1 xyz.localhost  

My problem is that: if I abc.localhost : Browsing to 88 I get the following error:

  Bad request - Invalid hostname HTTP error 400. Request hostname is invalid.  

Why not url abc.localhost: 88 browse 127.0.0.1:88?

Please help.

Because you need an entry for abc .localhost your host In the file. If you already have it, make sure your webserver is listening on port 88.

If you are using IIS, make sure you force the correct hostname (abc.localhost).


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -