Skip to the content
Documentation

apache2

No ratings yet

You can have a apache1 and a apache2 part in a the sample vhost
That way you can use one vhost for both servers.

<IfModule mod_php4.c>
    # If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
    # instead of <IfModule mod_php4.c>.

    # some parts/addons might only run safe mode on
    php_admin_flag safe_mode Off
    # security just in case
    php_admin_value register_globals    0
    # performance
    php_value magic_quotes_gpc  0
    # performance
    php_value magic_quotes_runtime  0
    #http://www.php.net/manual/en/ini....p#ini.allow-call-time-pass-reference
    php_value allow_call_time_pass_reference 0
</IfModule>

<IfModule sapi_apache2.c>
    # If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
    # instead of <IfModule mod_php4.c>.

    # some parts/addons might only run safe mode on
    php_admin_flag safe_mode Off
    # security just in case
    php_admin_value register_globals    0
    # performance
    php_value magic_quotes_gpc  0
    # performance
    php_value magic_quotes_runtime  0
    #http://www.php.net/manual/en/ini....p#ini.allow-call-time-pass-reference
    php_value allow_call_time_pass_reference 0
</IfModule>