Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual Directory (Alias) Question

Status
Not open for further replies.

jenica

IS-IT--Management
Mar 19, 2002
35
0
0
US
Hi all,

I am trying to configure a virtual directory or alias to point to something outside the document root. My document root is /home/httpd. I want to setup an alias as /webspeed31d/ which translates to /progress/dlc31d/webspeed/. My alias line looks like this:

Alias /webspeed31d/ "/progress/dlc31d/webspeed"
<Directory &quot;/progress/dlc31d/webspeed/&quot;>
Allow from all
</Directory>

I've stopped and started Apache, even rebooted the server, but for some reason, it keeps redirecting it to /home/httpd/progress/dlc31d/webspeed, which doesn't exist. It seems to be putting the document root path in front of my alias.

The strange thing was it was working the other day.

Any ideas would be greatly appreciated!
Thanks,

Jenica
 
Hi Jenica,

I think what you need is not an alisa.
Try this:

generate a symbolic link with ln -s /progress/dlc31d/webspeed/ webspeed31d
and use
<Directory &quot;webspeed31d&quot;>
Allow from all
</Directory>


cheers

frag

p.s.: to remove the symbolic link just delte it with rm webspeed31d
patrick.metz@epost.de
 
I can't guarantee that this will work because I have no possibility to test this. You have to make sure that the user that actually starts the server has read-permission on the linked folder. If you start the server as root you're fine and don't have to care about permissions. patrick.metz@epost.de
 
Thanks Frag,

That seemed to work!

Jenica
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top