This is a discussion on Using .htpasswd with ssi won't work within the Linux Web Servers forums, part of the Web Server and Related Forums category; I've successfully added .htpasswd user/group authentication to a directory on a server running Apache 1.3.9. My ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I've successfully added .htpasswd user/group authentication to a
directory on a server running Apache 1.3.9. My server side includes work for all .html pages on my site except for those within the passworded directory, where I receive error messages saying "an error occurred while processing this directive." If I delete the .htaccess file, the includes work. I added a line saying "Options Includes" to my .htaccess file in the passworded directory, but that didn't work. Here's what I have in my .htaccess file: Options Includes AuthType Basic AuthName "Restricted Content" AuthUserFile /home/.htaccessdir/.htpasswd AuthGroupFile /home/.htaccessdir/.htgroup require group restrictedgroup I'm successfully using virtual includes like this: <!--#INCLUDE VIRTUAL="/includes/mainnavbar.html"--> These includes work everywhere but in the protected directory, except when I delete the .htaccess file. My httpd.conf file includes the following pertinent lines: AddType text/x-server-parsed-html .html AddType text/x-server-parsed-html .htm <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory "/home/www"> Options FollowSymLinks ExecCGI Includes AllowOverride All Order allow,deny Allow from all </Directory> Does anyone have any ideas on what I need to do to get the includes to work? TIA, Bob |
|
|||
|
On Fri, 29 Aug 2003, Bob Leach wrote:
> I've successfully added .htpasswd user/group authentication to a > directory on a server running Apache 1.3.9. My server side includes > work for all .html pages on my site except for those within the > passworded directory, where I receive error messages saying "an error > occurred while processing this directive." If I delete the .htaccess > file, the includes work. I added a line saying "Options Includes" to > my .htaccess file in the passworded directory, but that didn't work. > > Here's what I have in my .htaccess file: > Options Includes > AuthType Basic > AuthName "Restricted Content" > AuthUserFile /home/.htaccessdir/.htpasswd > AuthGroupFile /home/.htaccessdir/.htgroup > require group restrictedgroup > > I'm successfully using virtual includes like this: > <!--#INCLUDE VIRTUAL="/includes/mainnavbar.html"--> > These includes work everywhere but in the protected directory, except > when I delete the .htaccess file. > > My httpd.conf file includes the following pertinent lines: > AddType text/x-server-parsed-html .html > AddType text/x-server-parsed-html .htm > <Directory /> > Options FollowSymLinks > AllowOverride All > </Directory> > <Directory "/home/www"> > Options FollowSymLinks ExecCGI Includes > AllowOverride All > Order allow,deny > Allow from all > </Directory> > > Does anyone have any ideas on what I need to do to get the includes to > work? Remove the included files from the password protected directory, OR move the including files INTO the password protected directory. |
|
|||
|
The included files (sitewide page headers and footers) are not in or
below the password-protected directory. All pages on the website include those files: the pages NOT in the password-protected directory successfully include the headers and footers, while the pages within the password-protected directory elicit the error messages and the page headers and footers do not appear. > Remove the included files from the password protected directory, OR move the > including files INTO the password protected directory. |