httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monkey <super_code_mon...@yahoo.com>
Subject Re: apache ssi & php in same file extensions
Date Tue, 16 Dec 2008 14:27:45 GMT
Nick Kew <nick <at> webthing.com> writes:

> 
> monkey wrote:
> > (thank you for everyone on the clarification 
> > on subject headings).
> > 
> > 
> > Yes, Eric; as of now I am able to get apache to 
> > parse .html and .php extensions
> > and work with apache includes. 
> 
> That's simple.  Use AddHandler to enable PHP, and
> either SetOutputFilter or FilterProvider/FilterChain
> for SSI.  See their respective docs for details
> (and alternatives).
> 
> Oh, and don't overcomplicate what you're trying to do.
> 

Thank you Nick. I was indeed over complicating it. 

After reading up on AddOutputFilter, it resolved itself.

#********************
## APACHE
#********************
AddType text/html .html
AddOutputFilter INCLUDES .html
Options +Includes

#********************
## PHP
#********************
AddType application/x-httpd-php .php .html

Much appreciated.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message