Skip to content

Commit

Permalink
adding apache2/templates/default/mods/php5.conf.erb
Browse files Browse the repository at this point in the history
  • 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.
16 changes: 16 additions & 0 deletions apache2/templates/default/mods/php5.conf.erb
@@ -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>

0 comments on commit 673df82

Please sign in to comment.