Web Hosting Talk







View Full Version : SSI / .shtml files not being parsed?


gafami
07-27-2002, 09:17 AM
hey there everyone,

I've used the latest apachetoolbox to compile apache (+php etc) and I also included mod_include to actually use server side includes within .shtml files. Apache itself works fine, so does php, but for some reason... the SSI-commands in .shtml files aren't executed.. but appear in the source code of the delivered sites... so basically they ain't working.


the httpd.conf does include the following though:

AddType text/html .shtml
AddHandler server-parsed .shtml


sooo what might be the reason that .shtml files "don't work" ?


cheers & thanks,
-joerg

EzSnake
07-27-2002, 09:42 AM
If you got PHP and using includes why save as .SHTML
I have always saved as .php even if include is only thing "php" about the whole page... This works perfect for me...

allan
07-27-2002, 12:33 PM
Originally posted by gafami

I've used the latest apachetoolbox to compile apache (+php etc) and I also included mod_include to actually use server side includes within .shtml files. Apache itself works fine, so does php, but for some reason... the SSI-commands in .shtml files aren't executed.. but appear in the source code of the delivered sites... so basically they ain't working.



What is the command you are trying to execute?

gafami
07-27-2002, 12:58 PM
mm well any kind.. e.g.

<!--#echo var="HTTP_REFERER" -->


:\

neil
07-27-2002, 03:46 PM
You'll also need "Options +Includes" just search for "Options" in httpd.conf.... if it's already set to "ALL" don't worry about it, but if not toss in Includes.

-neil

gafami
07-27-2002, 05:27 PM
Originally posted by neil
You'll also need "Options +Includes" just search for "Options" in httpd.conf.... if it's already set to "ALL" don't worry about it, but if not toss in Includes.

-neil

woohooo!! hehe thanks... it worked :)


cheers,
-jb

neil
07-28-2002, 01:01 AM
awsome, good to hear! The apache docs include some pretty good ssi help (as far as tags go) the one for 1.3 is at http://httpd.apache.org/docs/howto/ssi.html