HP3000-L Archives

November 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Tue, 21 Nov 2000 10:08:29 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
When a browser tries to retrieve /ACCT/GRP/FILE, Apache is going to look for
/APACHE/PUB/htdocs/ACCT/GRP/FILE.  If you look in /APACHE/PUB/logs/error_log,
you will probably see an error message showing the long name that wasn't found.

By default, Apache will always look for documents starting at the directory
specified in the DocumentRoot directive in httpd.conf.  You have a few choices
for allowing the web server to access files outside of the Apache account:

1) Set DocumentRoot to /.  BUT DON'T TRY THIS AT HOME!  It will allow a browser
to read any file on your e3000, probably causing grave security problems.

2) Specify Options +FollowSymLinks and create a symlink /APACHE/PUB/htdocs/ACCT
which points to /ACCT.  This will allow a browser to read all files below
/ACCT.

3) Specify Options +FollowSymLinks and create a symlink
/APACHE/PUB/htdocs/thefile which points to /ACCT/GRP/FILE.  Modify your HTML to
say HREF="/thefile", and then a browser click on it, the web server will read
/ACCT/GRP/FILE.

4) Utilize the UserDir feature so that when a browser requests a URL of
http://yourhost/~USER.ACCOUNT/thefile, the web server will read
/ACCOUNT/USERHOMEGRP/public_html/thefile.

5) The Alias directive is probably more secure than the symlink method, and
"Alias /foo /ACCT" tells Apache that browser requests for
http://yourhost/foo/bar need to come from the file /ACCT/bar.

- Mark B.

Scott Swartzell wrote:
>
>  Good morning,
>  ( apologies if this is a duplicate...not sure if it
>    went out the first time due to user error...;-)  )
>
>  Probably an easy one, but I'm stuck.  I'm trying to
>  reference a 'regular' MPE file from Apache, and I'm
>  getting an error telling me that the URL is not found.
>
>  The web page is at /APACHE/PUB/htdocs on my system, and
>  I'm trying to display a file with:
>
>  <a HREF="/ACCT/GRP/FILE">title</a>
>
>  Any suggestions?  It seems like this path should be correct.
>  From the shell I can do 'more /ACCT/GRP/FILE' and see the file.

ATOM RSS1 RSS2