fade
Staff member
I'm trying to do something that seems like it should be simple, but I can't figure it out.
I want to set a different documentroot for a given directory specified in the url.
In other words, I want www.example.com to go to the regular documentroot, but I want www.example.com/stuff to go to /usr/shared/pub/stuff.
I tried specifying a DocumentRoot inside a Location directive:
But that overwrites the DocumentRoot for the whole site. How can I do this? I don't want to use virtual hosts because I want this available to the public.
Thanks in advance.
I want to set a different documentroot for a given directory specified in the url.
In other words, I want www.example.com to go to the regular documentroot, but I want www.example.com/stuff to go to /usr/shared/pub/stuff.
I tried specifying a DocumentRoot inside a Location directive:
Code:
<Location /stuff>
DocumentRoot /usr/shared/pub/stuff
AuthType Basic
AuthName \"Stuff is here\"
AuthUserFile /etc/apache2/stuff-auth-file
Require valid-user
</Location>
Thanks in advance.