From owner-freebsd-questions Wed Mar 15 11:26:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by hub.freebsd.org (Postfix) with ESMTP id 9D42F37BA63 for ; Wed, 15 Mar 2000 11:26:08 -0800 (PST) (envelope-from rjoseph@nwlink.com) Received: from ip156.r7.d.bel.nwlink.com (ip156.r7.d.bel.nwlink.com [207.202.173.156]) by smtp.nwlink.com (8.9.3/8.9.3) with ESMTP id LAA28934; Wed, 15 Mar 2000 11:26:06 -0800 (PST) Date: Wed, 15 Mar 2000 11:20:18 -0800 (PST) From: R Joseph Wright X-Sender: rjoseph@mammalia.sea To: Craig Burgess Cc: freebsd-questions@FreeBSD.ORG Subject: Re: httpd pid In-Reply-To: <38CFDFF4.E63C94C@home.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 15 Mar 2000, Craig Burgess wrote: > R Joseph Wright wrote: > [lots trimmed] > > > However, now that it works, I'm still confused why ServerRoot is set for > > /usr/local. > > It is *a* place -- a starting point. You can change it to suit you. My > server root is /usr/local/http/data which matches (of course) the > absolute path to my html documents. Of course other changes need to be > made accordingly (e.g., for cgi). Symbolic links can also be used. (I > think it should be obvious why one would NOT want the ServerRoot to be > where the configuration files are.) > But right now, by default, it looks for configuration files under etc/apache relative to ServerRoot /usr/local, in other words it is looking in /usr/local/etc/apache for httpd.conf. If I were to change ServerRoot to, say, /usr/local/http/data, it would look for httpd.conf under /usr/local/http/data/etc/apache, which doesn't exist. I'd have to move everything around, including the path to the modules, etc. This is exactly the original problem I had. I originally set ServerRoot to /usr/local/etc/apache. It then looked for the files under /usr/local/etc/apache/etc/apache, which doesn't exist. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message