RE: Cannot Access Includes Above Current Directory

RE: Cannot Access Includes Above Current Directory

am 16.12.2003 18:29:20 von Steve Benson

John:

Thanks for taking the time to respond to my question it's much
appreciated.

I can understand this may be thought of as nothing to do with mod_ssl
(and that's most likely true). I'm not sure what other list might be
more appropriate and was trying to reach knowledgeable folks with both
Apache and SSL experience.

It might help if I explained the reason I tried the mod_ssl list is that
-

- I've created a number of Apache web sites using PHP but this is my
first using SSL(mod_ssl incorporated into Apache 2.0.48, openssl). I've
never encountered anything like this before in web development.

- All scripts work fine with relative paths to include files as long as
they're accessed via http and are not in the
https virtual server directory tree structure.

- When accessing the same scripts within the https virtual server tree
the scripts cannot reference any include files that
aren't at the same level or below in the directory tree.

- If the include file is made available at the same level or below, no
problem accessing via relative or absolute paths.

- Even when the paths to include files are changed to absolute paths
they fail if the file is above the current directory in the tree. For
some reason I can't go up the directory tree from within the https
virtual server directory structure.
This is true no matter where I am in the structure i.e. if I'm two
levels deep in the directory tree I can't reference a file up one level.
If I'm three levels deep I can't reference files back on level two,
bummer!

This seems to be a configuration problem but I've exhausted my resources
trying to figure out what within httpd.conf or ssl.conf would be causing
this behavior.

Seems like such a small thing but with an existing site structure I'd
have to replicate many scripts, css',images etc. to make the components
I need available within the https virtual server's directory structure.
What a maintenance nightmare!

Any suggestions you may offer are appreciated.

Thanks,

........... Steve



-----Original Message-----
From: John.Airey@rnib.org.uk [mailto:John.Airey@rnib.org.uk]=20
Sent: Tuesday, December 16, 2003 2:30 AM
To: modssl-users@modssl.org
Subject: RE: Cannot Access Includes Above Current Directory


This isn't really a mod_ssl issue, but I suggest you use the absolute
path for included php as the current directory is probably where the
httpd binary is, or perhaps where the config files are.

(I changed the subject as my last post was rejected, somehow)

-=20
John Airey, BSc (Jt Hons), CNA, RHCE
Internet systems support officer, ITCSD, Royal National Institute of the
Blind, Bakewell Road, Peterborough PE2 6XU,
Tel.: +44 (0) 1733 375299 Fax: +44 (0) 1733 370848
John.Airey@rnib.org.uk=20

There is more historical evidence for the existence of Jesus Christ than
for either Henry VIII or Julius Caesar.

-=20
DISCLAIMER:=20

NOTICE: The information contained in this email and any attachments is=20
confidential and may be privileged. If you are not the intended=20
recipient you should not use, disclose, distribute or copy any of the=20
content of it or of any attachment; you are requested to notify the=20
sender immediately of your receipt of the email and then to delete it=20
and any attachments from your system.=20

RNIB endeavours to ensure that emails and any attachments generated by=20
its staff are free from viruses or other contaminants. However, it=20
cannot accept any responsibility for any such which are transmitted. We
therefore recommend you scan all attachments.=20

Please note that the statements and views expressed in this email and=20
any attachments are those of the author and do not necessarily represent

those of RNIB.=20

RNIB Registered Charity Number: 226227=20

Website: http://www.rnib.org.uk=20
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org