You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Emil Diego <em...@sportsline.com> on 2001/12/12 17:26:43 UTC

SSI Configuration question.

Hello all,

	I am running apache 1.3 on windows NT 4.0 Workstation.  I am having
trouble setting the server to process Server side includes.  I want the
server to check all .html and all .htm files for #include directives.

I beleive that I need to add the following settings to the httpd.conf file:
	# Allows Server Side Includes
	Options +Includes

	# Tell the server what type of files to parse for SSI directives
	AddType text/html .htm
	AddHandler server-parsed .htm

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

	The only problem is I dont know where in the file to add it to.  I
have tried in a few spots but I stil can not get it to work.  Any help is
much appreciated.  


Emil
emild@sportsline.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: SSI Configuration question.

Posted by Joshua Slive <jo...@slive.ca>.

> From: Emil Diego [mailto:emild@sportsline.com]

> 	I am running apache 1.3 on windows NT 4.0 Workstation.  I am having
> trouble setting the server to process Server side includes.  I want the
> server to check all .html and all .htm files for #include directives.
>
> I beleive that I need to add the following settings to the
> httpd.conf file:
> 	# Allows Server Side Includes
> 	Options +Includes

That's fine, but you need to recognize that one "Options" directive can
override another.  You need to find the Options directives that apply to the
directories in question and ADD the Includes option to them.  Otherwise,
they will reset the options to not use Includes.

> 	# Tell the server what type of files to parse for SSI directives
> 	AddType text/html .htm
> 	AddHandler server-parsed .htm
>
> 	AddType text/html .html
> 	AddHandler server-parsed .html

Fine, but the AddType directives are not necessary since .htm and .html are
already mapped to text/html in mime.types.

>
> 	The only problem is I dont know where in the file to add it to.  I
> have tried in a few spots but I stil can not get it to work.  Any help is
> much appreciated.

The AddHandler can go anywhere, but the Options directive must apply to the
specific content you want to allow includes for, as I've mentioned above.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org