How to change localhost to something else

Posted on 2006-06-07
Last Modified: 2008-01-09

I use WinXP with IIS as my OS to develop and test webpages on my localmachine.

I current need to access all pages using http://localhost/foldername/

Is there any way by which I can add a new name instead of using localhost, so that way I can access different sites by their name directly (and not have to use localhost).

Eg: //jasonzsite/ -> where jasonzsite is what formerly used to be localhost.

This way i can keep each site seperate and not have to access it thru localhost/

How do i do this?

Thank You
Jason Menezes
Question by:jasonmzs
    LVL 24

    Accepted Solution

    Unlike IIS on a server, the IIS in XP does not support virtual websites. Virtual websites on a server OS based IIS allow you to have mutiple websites such as,, so on running on the same server. The server looks at the URL that was typed, and gives the appropriate web page.

    In the XP IIS, while you could edit the hosts file to point any names you want to the local computer, it wouldn't accomplish much as you would still need to use the foldername as well.

    Author Comment

    LVL 24

    Expert Comment

    Agreed. I've seen this a lot from web developers using an XP computer for testing. Some of them have ended up installing Apache web server instead for this.

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article ( first and run the tool TDSSKiller ( to get rid of the infection. Once done, and if the …
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    734 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

    25 Experts available now in Live!

    Get 1:1 Help Now