How do I configure a virtual host so that PHP will NOT be parsed for that virtual host? By default any hosts on the server parse PHP.

Thanks.

    No idea if it'll work, but you could try adding the following to your <VirtualHost> directive:

    &nbsp;&nbsp;php_admin_flag php_engine off

      Nope, the virtual host with this line still parsed PHP.

        18 days later

        I used the content below in a .htaccess file to prevent that certain files in a certain directory would be parsed.

        AddType text/html .php3 .php4 .phtml .php
        .py .pl .cgi .htm .html

        Maybe you can do the same when defining the virtual host

        This is not my territory so there are probably better ways to do it.

          Write a Reply...