dear david, Thank you very much for your illustrious reply. Thank you. stephen thomas ----- Original Message ----- From: "David Precious" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 17, 2004 1:50 AM Subject: [wdvltalk] RE: linux experts,
> > Hi Steven, > > > how to prevent client accessing their websites using their username > > http://mydomain.com/~clientusername. > > i am running apache server on linux o.s. If the client do so it should show > > a customized error page. what can be done. > > In your Apache config file, you should find a section for controlling access > to UserDir directories. There'll be a directive 'UserDir public_html' (by > default), then a '<Directory /home/*/public_html>' section which controls the > access. > > In the '<Limit GET POST OPTIONS PROPFIND>' section (within that > '<Directory..>' section, you'll see the following lines: > Order allow,deny > Allow from all > > Just change them to: > Order deny,allow > Deny from all > > That ought to do it, and will result in whatever you've defined for a 403 > (forbidden) error message (like ErrorDocument 403 <url>). > > Alternatively, you should be able to use RedirectMatch to just re-direct > requests starting with a tilde (~) to an error page: > > RedirectMatch ^/~.* http://www.example.com/error/url > > HTH > > Dave P > > > ____ . The WDVL Discussion List from WDVL.COM . ____ > To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] > Send Your Posts To: [EMAIL PROTECTED] > To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. > To change subscription settings to the wdvltalk digest version: > http://wdvl.internet.com/WDVL/Forum/#sub > > ________________ http://www.wdvl.com _______________________ > > You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% > > To unsubscribe via postal mail, please contact us at: > Jupitermedia Corp. > Attn: Discussion List Management > 475 Park Avenue South > New York, NY 10016 > > Please include the email address which you have been contacted with. > ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
