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

Posted on 2006-03-22
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
i have try virtualdrive and i must write localhost/
Question by:mptrader
    LVL 51

    Accepted Solution

    > 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)

    Author Comment

    i can't find system32\drivers\hosts
    can you give me an example
    and can i do this with
    LVL 51

    Expert Comment

    > .. 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

    Author Comment

    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

    Featured Post

    Superior storage. Superior surveillance.

    WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

    Join & Write a Comment

    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now