since I cannot change the index.html to index.php for the default generated file on vhost creation. The work around I can think of is like using php with index.html. on googling I find that I can set or add handler for php in .htaccess, but none of this I can get it working for using php. I can see that in vhost file there is a directive to set handler to none with html file. how I can add a apache directive to use php in index.html. Thanks.
I would not do this, but if you really want to, add Code: AddHandler application/x-httpd-php .html to the apache directives.
I don't understand. You can simply delete index.html or rename it something else for index.php to immediately work, so why the headache again?