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

can i make a virtualdirectory or website in IIS but not with localhost?
can a virtual directory being call without localhost? like
i have try virtualdrive and i must write localhost/
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mptraderAuthor Commented:
i can't find system32\drivers\hosts
can you give me an example
and can i do this with
> .. 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
you can do it with whatever you like, even writing frameworks with IDEs and so on ...
but I'd simply use or notepad.exe (if you're adicted to GUIs ;-)
or do it on command line:
  echo "" >> %SystemRoot%\system32\drivers\etc\hosts

KISS - keep it simple stupid
mptraderAuthor 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.