forked from chef-boneyard/cookbooks
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding apache2/templates/default/mods/php5.conf.erb
- Loading branch information
Sean OMeara
authored and
jtimberman
committed
Sep 13, 2011
1 parent
cfc1075
commit 673df82
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<IfModule mod_php5.c> | ||
<FilesMatch "\.ph(p3?|tml)$"> | ||
SetHandler application/x-httpd-php | ||
</FilesMatch> | ||
<FilesMatch "\.phps$"> | ||
SetHandler application/x-httpd-php-source | ||
</FilesMatch> | ||
# To re-enable php in user directories comment the following lines | ||
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it | ||
# prevents .htaccess files from disabling it. | ||
<IfModule mod_userdir.c> | ||
<Directory /home/*/public_html> | ||
php_admin_value engine Off | ||
</Directory> | ||
</IfModule> | ||
</IfModule> |