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
Solved

Serving more directories under ~user

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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