dev/provisioning/modules/apache/templates/mod/php5.conf.erb
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 #
       
     2 # PHP is an HTML-embedded scripting language which attempts to make it
       
     3 # easy for developers to write dynamically generated webpages.
       
     4 #
       
     5 #<IfModule prefork.c>
       
     6 #  LoadModule php5_module modules/libphp5.so
       
     7 #</IfModule>
       
     8 #<IfModule worker.c>
       
     9 #  # Use of the "ZTS" build with worker is experimental, and no shared
       
    10 #  # modules are supported.
       
    11 #  LoadModule php5_module modules/libphp5-zts.so
       
    12 #</IfModule>
       
    13 
       
    14 #
       
    15 # Cause the PHP interpreter to handle files with a .php extension.
       
    16 #
       
    17 AddHandler php5-script <%= @extensions.flatten.compact.join(' ') %>
       
    18 AddType text/html .php
       
    19 
       
    20 #
       
    21 # Add index.php to the list of files that will be served as directory
       
    22 # indexes.
       
    23 #
       
    24 DirectoryIndex index.php
       
    25 
       
    26 #
       
    27 # Uncomment the following line to allow PHP to pretty-print .phps
       
    28 # files as PHP source code:
       
    29 #
       
    30 #AddType application/x-httpd-php-source .phps