AndreasA
asked on
Subdomain wildcard on localhost
I running IIS on Windows XP Pro. And I am experimenting with setting up subdomains.
In the HOSTS file I can create new subdains:
127.0.0.1 localhost
127.0.0.1 subdomain.localhost
Works fine.
But is there any way I can create a wildcard?
127.0.0.1 *.localhost
Doesn't work.
Thanks,
In the HOSTS file I can create new subdains:
127.0.0.1 localhost
127.0.0.1 subdomain.localhost
Works fine.
But is there any way I can create a wildcard?
127.0.0.1 *.localhost
Doesn't work.
Thanks,
No wildcards are allowed and only the main domain name is a valid entry. Directories and files at a site are not supported. Thus www.microsoft.com is a valid entry but www.microsoft.com/windows98/ is not.
taken from teh link in the above post to
http://vlaurie.com/computers2/Articles/hosts.htm
taken from teh link in the above post to
http://vlaurie.com/computers2/Articles/hosts.htm
ASKER
But is there another way of doing it? Instead of in the HOSTS file?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
As this has answered your question can you now close?
https://www.experts-exchange.com/questions/23046081/How-can-I-use-wildcards-in-the-Windows-HOSTS-file.html