Using .htpasswd with ssi won't work

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-29-2003
Bob Leach
 
Posts: n/a
Default Using .htpasswd with ssi won't work

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
  #2 (permalink)  
Old 08-30-2003
D. Stussy
 
Posts: n/a
Default Re: Using .htpasswd with ssi won't work

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.
  #3 (permalink)  
Old 09-02-2003
Bob Leach
 
Posts: n/a
Default Re: Using .htpasswd with ssi won't work

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.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0