htaccess uthentication & mod_cache

16 views
Skip to first unread message

Davers

unread,
Apr 20, 2007, 10:58:53 AM4/20/07
to Apache .htaccess
Hi,

Based on everyone's knowledge about htaccess usage, I thought you guys
might have some insight into my problem.

I have 5 webservers reading from two fileservers via NFS. The
webservers are using Apache 2.2 with mod_cache. The webservers cache
html, images, and videos that are not behind a .htaccess file with
Basic Authentication.

I would like the webservers to cache the content behind the .htaccess
files and re-authorize the user from the .htpasswd file when it serves
files from cache. The reason for this is that each fileserver has more
than 1TB of data on it and I'd like the webservers to cache the most
frequently used content to reduce NFS traffic and fileserver iowait. I
have Cache-Control set to "public, no-cache". mod_cache, however, does
not cache this content still.

Is there something else that will allow for my end goal? Is my
implementation incorrect?

Thanks in advance for your assistance,

David Szostek

--------------------------

VirtualHost Entry:

<Directory /home/users/uvhosting/sites/web5test.com/htdocs/members/
>
Header append Cache-Control "public, no-cache"
</Directory>
<Directory "/home/users/uvhosting/sites/web5test.com/htdocs">
AllowOverride All
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>

Reply all
Reply to author
Forward
0 new messages