Solved

Serving more directories under ~user

Posted on 2002-07-07
3
166 Views
Last Modified: 2010-03-04
Using Apache 1.3, I wish to serve directories other than html in a users' home dir.

For example:
www.domain.com/~user will serve what is in /usr/home/user/html
which currently works, but I also want
www.domain.com/~user/reports to serve what is in /usr/home/user/reports
 .. and not have to put reports under html.

I have tried various methods such as putting "UserDir reports" in <IfModule mod_userdir.c> but that obviously cancels out "UserDir html".

Thanks
0
Comment
Question by:cfinniga
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
samri earned 50 total points
ID: 7135028
cfniga,

Yes, I can confirm that would be true.  Remember that the purpose of UserDir directive is to enable url http://www.domain.com/~user/ to be mapped to some path in userhome directory (by deafult it would be in ~user/public_html/), having a multiple of this would actually cancel out the first declaration.

I would think that you might need mod_rewrite to actually rewrite the requested URL to the mapped to the new url;

Check out the URL rewriting Guide,
http://httpd.apache.org/docs/misc/rewriteguide.html

Another possibilities would be AliasMatch (mod_alias);
http://httpd.apache.org/docs/mod/mod_alias.html#aliasmatch

I'm not sure which would be the best (and simplest).  Perhaps I might need to workout some possible config that works.

Feel free to look at both options.

regards,
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 9691037
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:

Answered by Samri

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

periwinkle
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question