[tpop3d-discuss] How to setup a hashed directory structure?
William Devine, II
william at smartguys.net
Fri, 5 Oct 2001 17:04:09 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_00CB_01C14DBF.C01CF4E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have a virtual hosting site and have user accounts setup in 'hashed' =
directories based on their first two username characters.
IE username of william
would be under /home/httpd/userpages/w/wi/william
and referenced as http://www.whateversite.com/william/
and I then use mod_rewrite and a perl script to rewrite william =
to /w/wi/william
I want to be able to deposit user's email into a subdirectory called =
'.mail' under /w/wi/william . I'd then have a rule in apache to disable =
download of this directory or any files under it (just in case.) Then =
all email for that user would be dropped inside this directory so it =
will count against their quota when the upload additional files for =
their website.
Possible?
thanx!
William
------=_NextPart_000_00CB_01C14DBF.C01CF4E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have a virtual hosting site and have =
user=20
accounts setup in 'hashed' directories based on their first two username =
characters.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>IE username=20
of william</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>would be under=20
/home/httpd/userpages/w/wi/william</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and referenced as <A=20
href=3D"http://www.whateversite.com/william/">http://www.whateversite.com=
/william/</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and I then use mod_rewrite and a perl =
script to=20
rewrite william to=20
/w/wi/william</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I want to be able to deposit user's =
email into a=20
subdirectory called '.mail' under /w/wi/william . I'd then have a =
rule in=20
apache to disable download of this directory or any files under it (just =
in=20
case.) Then all email for that user would be dropped inside this =
directory=20
so it will count against their quota when the upload additional files =
for their=20
website.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Possible?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>thanx!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>William</FONT></DIV></BODY></HTML>
------=_NextPart_000_00CB_01C14DBF.C01CF4E0--