troubleshooting Question

Newbie question about UserDir

Avatar of harlow
harlow asked on
Apache Web Server
3 Comments1 Solution227 ViewsLast Modified:
This is my first foray into running Apache, and I am full of ignorant questions, so hopefully the gurus out there will show mercy at my naivete...

I am running Apache 1.3.22 on RedHat Linux 7.2 (kernel 2.4.7-10). I made only minimal moodifications to httpd.conf after reading the various FAQs and HOWTOs, and things generally work as advertised.  When I browse to, the server serves the page /var/www/html/index.html, and when I browse to, the server correctly serves back the page /home/foouser/public_html/index.html, so I think the server setup is basically working properly.  But there is a problem in resolving links in the actual web pages placed in public_html by foouser:

If an <a> construct refers to a local page relative to the site root, the server interprets this to mean the root of the whole site, not the user's own site in public_html. Specifically, this reference:

<a href="/Sub_Test_Page.html">This is a site-root relative link</a>

results in the server trying to serve back the page /var/www/public_html/Sub_Test_Page.html rather than the intended /home/foouser/public_html/Sub_Test_Page.html. What it actually does is construct the URL 

rather than

For the web page author who has no knowledge of the details of the server setup, this is clearly the wrong behavior. My real question is, is the server doing what it is supposed to do here, and I am just expecting the wrong behavior, or is something wrong in my setup? If the answer is not straightforward, I can post my httpd.conf file for expert perusal.



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros