We help IT Professionals succeed at work.

can i make a virtualdirectory or website in IIS but not with localhost by coding (Urgent)

mptrader
mptrader asked
on
Medium Priority
440 Views
Last Modified: 2010-04-20
can i make a virtualdirectory or website in IIS but not with localhost?
can a virtual directory being call without localhost? like ccc.com
i have try virtualdrive and i must write localhost/ccc.com
Comment
Watch Question

> can a virtual directory being call without localhost? like ccc.com
you need to add a proper line in your system32\drivers\hosts file for ccc.com
in your IIS configuration you also can specify the host name (which is different of the site name)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
i can't find system32\drivers\hosts
can you give me an example
and can i do this with vb.net?
> .. can't find system32\drivers\hosts
oops, it's system32\drivers\etc\hosts, or in detail: %SystemRoot%\system32\drivers\etc\hosts

> and can i do this with vb.net?
you can do it with whatever you like, even writing frameworks with IDEs and so on ...
but I'd simply use edit.com or notepad.exe (if you're adicted to GUIs ;-)
or do it on command line:
  echo "127.0.0.1 ccc.com" >> %SystemRoot%\system32\drivers\etc\hosts

KISS - keep it simple stupid

Author

Commented:
i get an error

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

how to solve this?
i want to call my virtual drive directly
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.