httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <li...@itech7.com>
Subject Re: [users@httpd] php in .html documents when using php as cgi
Date Tue, 22 Jun 2010 13:11:14 GMT
On 06/22/2010 12:54 AM, Matthias Leopold wrote:
> hi,
>
> i'm using mod_fcgid to serve .php pages in a setup similar to the one
> layed out on http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html (+
> suexec). now i realized that i can't use php in .html documents like i
> could when i was using mod_php. is there a setup that makes it possible
> to have php interpreted in .html documents when using php as cgi? i
> didn't do much research and i hope my question is ok for this group
>
> thx
> matthias
>
> ---------------------------------------------------------------------
> 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
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

AddHandler php-fcgi .php .html
Action php-fcgi /cgi-bin/php.fcgi

<FilesMatch "\.(php|html)$">
Options +ExecCGI
</FilesMatch>

-- 
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
Cheap and Reliable VPS Hosting: http://j.mp/arHk5e

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message