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 http://www.foo.net
, the server serves the page /var/www/html/index.html, and when I browse to http://www.foo.net/~foouser
, the server correctly serves back the page /home/foouser/public_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:
>This is a site-root relative link</a>
results in the server trying to serve back the page /var/www/public_html/Sub_T
tml rather than the intended /home/foouser/public_html/
age.html. What it actually does is construct the URL
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.