mharc-users

Re: creating separate .htaccess files for different lists?

2003-11-10 14:02:06
I actually built htaccess directory tree which mirrors the ~/html/
structure.  These .htaccess files are all owned by root and are copied
in to the archive directories by a simple script root executable only.

The reason for the root ownership is that when a make rebuild is done,
it attempts to overwrite the .htaccess files to install the default (or
specified) one.  This once caused a big problem for me as some time ago,
the IT-Security mailing list archive got indexed by yahoo, google, and
probably others.  That list has sensitive discussion regarding our
network's infrastructure and security issues.  What had happened was
that I did a make rebuild and overwrote all the htaccess files I
previously had setup.  By making the .htaccess files owned by root I can
ensure that make rebuild will not be able to overwrite them.

On Wed, 2003-11-05 at 12:50, Cheryl Trooskin wrote:
Richard Morse (remorse(_at_)partners(_dot_)org) wrote:
Hi!  One thing I just discovered (see my previous message) is that the 
directories for the lists are apparently completely deleted and 
recreated when a "make rebuild" (and, I guess a regular add) is done.  
I have a number of mailing lists that I'm archives, from two separate 
groups.  I _need_ to be able to apply different passwords to the lists 
from the various groups.  I had assumed that I could just stick a 
.htaccess file into each directory, but if the directory is going to be 
deleted, the .htaccess file will be deleted as well.  Is there any 
obvious solution to this that I'm missing?  Is there something that I 
can pass to mharc that tells it not to delete and re-create the 
directories?

I think I'd store the canonical .htaccess files in a separate place, and
then either hack bin/web-archive or the makefile to copy them to the html
directories after a rebuild.

Something like:

passwords/list1.htpass copied to html/list1/.htpass
passwords/list2.htpass copied to html/list2/.htpass
etc.

should be straightforward to implement in a utility that you can have
run after web-archive in the rebuild target.

Personally, I find that now that my archives are set up, I don't make
rebuild anymore, but your experience may differ wildly.

sev
--
Sean M. Alderman
ITRACK Systems Analyst
PACE/NCI - NASA Glenn Research Center
(216) 433-2795

BASIC is the Computer Science equivalent of `Scientific Creationism'.

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHARC-USERS