From owner-freebsd-questions Sat Jan 22 21:56:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.beastie.net (cr13646-a.lngly1.bc.wave.home.com [24.113.138.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E7B214F6A for ; Sat, 22 Jan 2000 21:56:33 -0800 (PST) (envelope-from beastie@beastie.net) Received: from [192.168.1.2] (helo=Beastie) by www.beastie.net with smtp (Exim 3.03 #1) id 12CFzS-0002CV-00 for questions@FreeBSD.ORG; Sat, 22 Jan 2000 21:55:10 -0800 Message-ID: <001c01bf6566$b0909c40$0201a8c0@uniserve.com> From: "David Fuchs" To: "Freebsd Questions" References: Subject: Re: help with apache, and public_html directory Date: Sat, 22 Jan 2000 21:57:11 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In your httpd.conf file, you should see something like this: --------- # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. # UserDir public_html --------- If you want to allow users to have their own pages, just have them create the directory "public_html" in their home directory. To view the content on the net, simply have them open a browser and set their address to http://your.domain-or-ip.here/~username . Make sure you use the ~ symbol in before the username, or it won't work. You can change the UserDir setting in httpd.conf to whatever you want, and then have your users create a subdirectory by that name in their home directory. You will get forbidden messages and the like if you don't have an index.html file in the directory or if the permissions are wrong, rights/permissions MUST be executable (not necessarily readable) by all. Example "chmod 755" will work, but so will "chmod 711". I use "chmod 711" to set permissions so that users can snoop in each other's directories. (Please don't argue about this people... I know some of you are probably gettin' that warm and fuzzy "I think what you're doing is WRONG" feeling already...) hahaha j/k =) Any more questions? Need more clarification? Send me a note and I'll get back to you. -David Fuchs ----- Original Message ----- From: James To: Freebsd Questions Sent: Saturday, January 22, 2000 9:17 PM Subject: help with apache, and public_html directory > Howdy, > > I'm new to bsd, and have just muddled through the installation of apache on > my machine here at home (its a 2.2.6 build, mostly set up by a friend), and > I would like to enable friends to view web pages on my machine - but I have > no idea how to set the directories so that they can be viewed.... > > Can someone tell me how to do this? - what are the default permissions to > allow something to be viewed? - do I need a . file of some sort so that > people can browse it or something? :-) > > Every attempt I've had so far has come across some form of 'you do not have > permission' message..... > > Any and all help would be gratefully recieved :-) > > regards > > james > > > > 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