Adding an alias to Apache 2.2 running under WinXP


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.


Who is Participating?
_Marcel_Connect With a Mentor Commented:
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.
johnkanAuthor Commented:
Thanks for that Marcel.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.