Forum Moderators: phranque

Message Too Old, No Replies

SSI & htaccess

SSI & htaccess

         

Scheme138

8:38 pm on Feb 14, 2006 (gmt 0)

10+ Year Member



i have a normal, publicly accessable shtml file that contains a few SSI statement. 1 to include a header and 1 to include a footer. But i also need to include a file that is in an htacess password protected directory.

when i try to include that protected information, instead of getting a prompt for a password to access it, i get the error:
[an error occurred while processing this directive]

my htaccess file looks like this:

AuthUserFile /home/rkbven/www.example.com/htdocs/reha/secure/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
AuthName Protected
AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
require valid-user

when i try switching the scenario around (including the protected information from INSIDE the directory, and trying to include the header and the footer from outside, the header and footer no longer work.

this link is trying to include the protected content from outside the protected directory
http://www.example.com/reha/rehaindex.shtml

this link is trying to include the non-secure content from inside the protected directory
http://www.example.com/reha/secure/rehaindex.shtml

i hope this all made sense...i cant figure out if this can work at all.

[edited by: jdMorgan at 8:28 pm (utc) on Feb. 15, 2006]
[edit reason] Example.com [/edit]

jdMorgan

6:14 pm on Feb 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Scheme138,

Welcome to WebmasterWorld!

You might want to test again, and then check your server error log. It will often give you very useful information.

Jim

Scheme138

5:08 am on Mar 21, 2006 (gmt 0)

10+ Year Member



the error log says

[error] [client x.x.x.x] unable to include "secure/rehaindex.html" in parsed file /home/rkbven/www.example.com/htdocs/reha/rehaindex.shtml

that error is from trying to include a secured file from outside the secure directory.

[edited by: jdMorgan at 8:27 pm (utc) on Mar. 21, 2006]
[edit reason] example.com [/edit]