From owner-freebsd-questions Mon Sep 20 3:38:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from curlew.cs.man.ac.uk (curlew.cs.man.ac.uk [130.88.13.7]) by hub.freebsd.org (Postfix) with ESMTP id B054714C2E for ; Mon, 20 Sep 1999 03:38:15 -0700 (PDT) (envelope-from Networks.Manager@rncm.ac.uk) Received: from fs3.rncm.ac.uk ([193.63.96.102] helo=rncm.ac.uk) by curlew.cs.man.ac.uk with esmtp (Exim 1.92 #3) id 11T04r-000KbC-00; Mon, 20 Sep 1999 10:49:41 +0100 Received: from RNCM-FS3/SpoolDir by rncm.ac.uk (Mercury 1.44); 20 Sep 99 10:49:44 GMT Received: from SpoolDir by RNCM-FS3 (Mercury 1.44); 20 Sep 99 10:46:47 GMT Received: from selene (193.63.96.96) by rncm.ac.uk (Mercury 1.44); 20 Sep 99 10:46:44 GMT From: "Peter McGarvey" To: "Dan Mahoney Jr." , Subject: RE: httpd questions Date: Mon, 20 Sep 1999 10:46:41 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 1. Is there a way to turn off the tilde in userdirs, as we are porting > from a system where userdirs were handled differently (read:poorly). Jon > Chen on this list suggested in an earlier email to create a symlink from > htdocs/username to username/public_html (but that sounds like a LOT of > symlinks), as well as a complication to adding and removing users. I suspect you're stuck with the tilde thing unless you rewrite apache. I agree the symbolic links thing is a bit of a pain. I faced a similar problem when I migrated our webservers off NT onto a BSD/Apache box. I found the best work around was to add a permanent redirect to httpd.conf. ServerName www.rncm.ac.uk Redirect permanent /users/xaphod http://hermes.rncm.ac.uk/~xaphod If you have many users it should be simple enough to write a tiny perl script to create the directives for you. > 2. Is there some way to prevent virtual hosts from reflecting userdirs: > > For example, www.ourwebhostingclient.com/~anyuser > > should NOT show through, but it does. > To do this you need to place the user directory directives within the virtual host directives. The following is snipped from my httpd.conf. NameVirtualHost 193.63.96.1 ServerName hermes.rncm.ac.uk ... snippage... UserDir public_html ... snippage... ... snippage... ServerName www.rncm.ac.uk ... snippage... The URL http://hermes.rncm.ac.uk/~xaphod gets to my home directory whereas http://www.rncm.ac.uk/~xaphod throws out a 403 error. TTFN, FNORD -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Peter McGarvey, Networks Manager | email: Networks.Manager@rncm.ac.uk Royal Northern College of Music | tel: +44 (0)161 907 5218 124 Oxford Road, Manchester, | fax: +44 (0)161 273 7611 England M13 9RD | mobile: +44 (0)7887 990564 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Thanks for all the help... > > -Dan Mahoney > > -- > > "She's been getting attacked by these leeches, they're leaving > these marks > all over her neck. You gotta keep her out of those woods. If one more > leech gets her, she's gonna get a smack." > > -Someone's Mother, December 18th, 1998 > > Dan Mahoney > Gushi on efnet IRC > ICQ:13735144 > AIM:LarpGM > (webpages TBA) > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message