apache directive to use php in html

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Jan 15, 2021.

  1. pawan

    pawan Member HowtoForge Supporter

    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.
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I would not do this, but if you really want to, add
    AddHandler application/x-httpd-php .html
    to the apache directives.
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    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?

Share This Page