Re: apache ssi & php in same file extensions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux