[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Howto Multiple Aliases ?

I want to be able to create one alias under another forming a Hierarchy.

e.g.

http://localhost/aliasedfolder
http://localhost/aliasedfolder/anotheraliasedfolder

My Platform is FreeBSD 4.7 and Apache 2

I would imagine something like this would be needed in conf/httpd.conf


Alias /horde "/usr/local/horde-2.2.1"

<Directory "/usr/local/horde-2.2.1">
        options none
        AllowOverride All
</Directory>



Alias /horde/turba "/usr/local/turba-1.1"

<Directory "/usr/local/turba-1.1">
        options none
        AllowOverride All
</Directory>


Although that doesnt work for me, if i goto http://localhost/horde/turba i get a 404 and in logs/error_log i get

[Wed Feb 26 19:59:45 2003] [error] [client 192.168.0.15] File does not exist: /usr/local/horde-2.2.1/turba


Thanks Adam
0
adamretter
Asked:
adamretter
  • 2
1 Solution
 
adamretterAuthor Commented:
Need an answer ASAP so Better grades for quick Answers!
0
 
heskyttbergCommented:
Hi!

You cannot nest aliases like that, it's not possible.
Sorry.

If you want something like that, why not create a link directory, and make symbolic links in that dir insead and as option put FollowSymLinks.

Regards
/Hans - Erik Skyttberg
0
 
adamretterAuthor Commented:
Thank you

A Symbolic Link and +FollowSymLinks seem to do exactly what I need.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

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