• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1601
  • Last Modified:

Adding an alias to Apache 2.2 running under WinXP

Hello

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.

http://localhost/MY_FIRST_STATIC_SITE_WEB/UK/PAGE_welcome.htm

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.

Thanks

0
johnkan
Asked:
johnkan
1 Solution
 
_Marcel_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.
0
 
johnkanAuthor Commented:
Thanks for that Marcel.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now