Adding an alias to Apache 2.2  running under WinXP

Posted on 2007-07-30
Last Modified: 2008-02-01

I have set up Apache 2.2 on my Win XP PC. It is running ok.

I am running some web authoring software that when testing pages uses this sort of format for the URL for the pages.


My web root folder doe's not contain the 'MY_FIRST_STATIC_SITE_WEB/UK/PAGE_welcome.htm'

This is located on c:\My sites\My first static site\MY_FIRST_STATIC_SITE_WEB/UK/PAGE_welcome.htm

Can anyone tell me how to create an alias for the 'MY_FIRST_STATIC_SITE_WEB' folder so that I can reference it directly in the form

http://localhost/MY_FIRST_STATIC_SITE_WEB/UK/PAGE_welcome.htm from my browser.

Any assistance is greatly appreciated.


Question by:johnkan
    LVL 8

    Accepted Solution

    Add to httpd.conf:
       Alias /MY_FIRST_STATIC_SITE_WEB/ "c:\My sites\My first static site\MY_FIRST_STATIC_SITE_WEB"
    Then restart Apache.

    Author Comment

    Thanks for that Marcel.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    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