|
I enabled the deflate module for certain mime types (text/html being one of them) on my apache2 installation and but that's conflicting with the authcookie login script. I am getting forbidden error (403) when the login script is called.
Here's my sample setup ..
<VirtuaHost *.80>
PerlModule MyAuth::AuthCookieHandler
PerlSetVar MyCookiePath /
PerlSetVar MyCookieLoginScript /login.pl
PerlSetVar MyCookieCookieName MyAuth_MyCookie
PerlSetVar MyCookieSatisfy Any
PerlSetVar MyCookieSecure 0
PerlSetVar MyCookieHttpOnly 0
PerlSetVar MyCookieCache 0
# Directory that requires user login
<Location /main>
AuthType MyAuth::AuthCookieHandler
AuthName MyCookie
PerlAuthenHandler MyAuth::AuthCookieHandler->authenticate
PerlAuthzHandler MyAuth::AuthCookieHandler->authorize
require valid-user # authenticate method must return turn to be valid-user
</Location>
# Have a mod perl setup
<Files login.pl>
SetHandler perl-script
Options +ExecCGI
PerlHandler ModPerl::Registry
</Files>
# Enabling compression below
# causes the forbidden (403) error
# for the login script
DeflateCompressionLevel 5
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml
application/xml application/xhtml+xml text/javascript text/css
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</VirtualHost>
Anybody familiar with this? Thanks in advance!
|