Link to home
Create AccountLog in
Avatar of AndreasA
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,
Avatar of slam69
slam69
Flag of United Kingdom of Great Britain and Northern Ireland image

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

Avatar of AndreasA
AndreasA

ASKER

But is there another way of doing it? Instead of in the HOSTS file?
ASKER CERTIFIED SOLUTION
Avatar of slam69
slam69
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
As this has answered your question can you now close?