David Squire skrev:
It works for me. Note that it is only set for pages protected using
.htaccess files - which you say you are using.
Please show us some code so that we have some chance of diagnosing your
problem.
DS
# From my apache (one of the, got at apache running behind with
mod_perl this apache rewrite to it)
Maby this it the problem ?
<VirtualHost *>
ServerName somedomain.com
<Location />
AuthName MyDomain
AuthType basic
AuthUserFile /home/user/.htpasswd
require valid-user
</Location>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^.*\.gif$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.jpeg$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.jpg$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.jpe$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.ico$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.css$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.html$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.htm$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.pdf$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.js$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.png$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.pl$ [NC]
RewriteCond %{REQUEST_URI} !^.*\.txt$ [NC]
RewriteRule ^(.*)$
http://127.0.0.1:8097$1 [P,NC]
<Directory />
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
ServerAdmin (e-mail address removed)
DocumentRoot /home/user/html
ErrorLog /home/user/log/error_log-admin
CustomLog /home/user/log/access_log-admin common
</VirtualHost>