PDA

View Full Version : Local Apache won't parse SSI's?


LeafWind
06-07-1999, 01:19 PM
I got a local version of Apache running a couple weeks ago, then had to set it aside to deal with a few other projects.[nbsp][nbsp]
Now I'm wanting to test a local revision of my website before uploading it, specifically, this new revision relies much more heavily on SSI's.

The problem: it will not parse the ssi's when I open the local copies of the pages in my browser.[nbsp][nbsp]It just ignores the include directives as if they were comments.[nbsp][nbsp]I know my syntax is the same as I use on the FQ server.

In my httpd.conf file, the only lines that seem to apply to SSI's read as follows:

#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml


Uncommenting those lines is all I have done to try to make SSI's work, as nothing else seemed relevent. Is there anything else I need to do?[nbsp][nbsp]Checking my SSI's before I upload is at least half the reason I installed Apache locally.

Any ideas or assistance would be greatly appreciated.

Thanks,

Bekariso<!-- NO_AUTO_LINK -->
------------------
www.LeafWind.com (http://www.LeafWind.com)
Growing web sites that thrive in the winds of change.

Terra
06-07-1999, 05:41 PM
In your primary <Directory> container, do you have the the following... e.g. is from FQuest configs (sorta) ;)

<Directory &quot;/big/dom&quot;>
blah blah blah
Options Indexes Includes ExecCGI
blah blah blah
</Directory>

The key item is the 'Includes' one, as this will tell Apache that SSI is allowed at this directory and below...[nbsp][nbsp]It also turns on the parsing of .shtml files and enables the AddType/AddHandler directives...

--
Terra
--Knee deep in killer-coding--
FutureQuest

LeafWind
06-07-1999, 06:37 PM
Thanks Terra

I had figured out much the same thing myself from poking around in the depths of the apache.org site, but my puter crashed before I could get back and post that I had it working.

Thanks!

Bekariso
whose puter needs a new fan, maybe :(
------------------
www.LeafWind.com (http://www.LeafWind.com)
Growing web sites that thrive in the winds of change.