Solved

Serving more directories under ~user

Posted on 2002-07-07
3
163 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
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

806 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