Index.html page is downloaded instead of being opened




  • Avatar
    Bogdan George Aruxandei

    Same issue here, on Plesk Onyx 17.5.3 on Debian 8.9. but happens only on one single subdomain. Tried to delete and recreate subdomain, tried to add your headers in var/vhosts/system/subdomain/conf/httpd.conf but no result. The only thing that is working is to add one .htaccess file with the following header: "AddType text/html .html"

  • Avatar
    Artyom Baranov

    @Bogdan George Aruxandei,

    Hello! The solution you have found indeed should help. .htaccess file will overwrite Apache settings for that domain. However, did you try to add headers from the article to /etc/apache2/apache2.conf file? (it is the same as /etc/httpd/conf/httpd.conf for RedHat-based OS)

Please sign in to leave a comment.

Have more questions? Submit a request