From owner-freebsd-questions Mon May 14 18:38:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id AEA7537B42C for ; Mon, 14 May 2001 18:38:28 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id TAA92074; Mon, 14 May 2001 19:38:15 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Mon, 14 May 2001 19:38:15 -0600 (CST) From: Ryan Thompson To: Wyatt Banks Cc: questions@FreeBSD.ORG Subject: Re: Apache Server Question In-Reply-To: Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Wyatt Banks wrote to questions@FreeBSD.ORG: > Not trying to post off topic, but I saw several of these in the mail > archives on the FreeBSD site, so I thought I'd ask and see if anyone > figured it out yet. I'm wondering if anyone has figured if it is > possible to use server side includes (SSI) with Apache. Yes, SSI and Apache are a close knit family :-) Out of the default Apache install in 1.3.x (including 1.3.12), just create your virtual host record, like this: ServerAdmin somebody@somedomain.com DocumentRoot /home/somebody/public_html/ ServerName www.somedomain.com ServerAlias somedomain.com AllowOverride None Options Includes Order allow,deny Allow from all Also of use in Options is IncludesNoExec, which allows SSI, but not the potentially insecure #exec cgi and #exec cmd. Name your files with the extension .shtml or .shtm, or SSI won't work. SSI will not work within CGI output. Make sure your directives are keyed correctly (spaces are important! SSI is *very* picky). This works: These (and some others) do NOT: IS WRONG IS WRONG IS WRONG Load your pages in a browser. Are your directives still there? Or did they get parsed? Hope this helps. Virtually yours, - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message