Hi Ellen,

every web server has what's called a pageroot, the directory in the
filesystem where the web pages are served from. If the web server is
going to be able to follow a soft link, that softlink must be a relative
softlink rather than a fully-qualified path. Basically, you don't want
your web server to be able to access any files outside of it web space
(i.e. pageroot).

This is ok:

  ln -s dir/subdir softlink

This is ok:

  ls -s ../dir/subdir softlink

This is NOT ok:

  ln -s /home/scott/dir/subdir softlink


In the last case, the web server cannot follow the path because it
begins outside of its pageroot, UNLESS your pageroot *is* set to /home.

Let me know if you're still having problems with this,


/s.

-----Original Message-----
From: AOLserver Discussion [mailto:[EMAIL PROTECTED]] On Behalf
Of Ellen Spertus
Sent: Sunday, August 19, 2001 9:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [AOLSERVER] Symbolic links and directoryfile


Thanks for the reply.

>Maybe you linked to a relative path
>incorrectly, or you linked to the absolute path rather than the path
>relative to the pageroot.

I did link to an absolute path (/home/mailman/blahblah), which is not
under pageroot.  Is that not allowed?

Ellen

Reply via email to