Apache is downloading index.html

I don`t know where the problem is but Apache server is downloading index.html file instead of show it in browser.
This is my vhost config:
SuexecUserGroup “#502” “#502
ServerName upload.abcdownload.ro
ServerAlias www.upload.abcdownload.ro
ServerAlias webmail.upload.abcdownload.ro
ServerAlias admin.upload.abcdownload.ro
DocumentRoot /home/upload/public_html
ErrorLog /var/log/virtualmin/upload.abcdownload.ro_error_log
CustomLog /var/log/virtualmin/upload.abcdownload.ro_access_log combined
ScriptAlias /cgi-bin/ /home/upload/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/upload/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/upload/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/upload/fcgi-bin/php5.fcgi .php5

<Directory /home/upload/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch

RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.upload.abcdownload.ro
RewriteRule ^(.) https://upload.abcdownload.ro:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.upload.abcdownload.ro
RewriteRule ^(.
) https://upload.abcdownload.ro:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
php_admin_value engine Off
IPCCommTimeout 31
FcgidMaxRequestLen 1073741824

This is the URL : http://upload.abcdownload.ro/files/index.html
And this is my htacces file from files directory:
Options +FollowSymLinks
DirectoryIndex index.html
Options All -Indexes
Options -Includes -IncludesNOEXEC -ExecCGI
RemoveHandler cgi-script .pl .py .cgi
RemoveType php

php_flag engine off php_flag engine off php_flag engine off

<FilesMatch “.(htaccess|htpasswd|sh)$”>
Order Allow,Deny
Deny from all

Header unset Content-Type Header unset Content-Disposition Header set Content-Disposition attachment Header set Content-Type application/octet-stream Header add Content-Type application/force-download Header add Content-Type application/download Header unset Content-Transfer-Encoding Header set Content-Transfer-Encoding binary

It used to work if a I added this lines in vhost configuration for public_html directory:
AddHandler cgi-script .cgi
AddHandler server-parsed .html
but is not working anymore. Don`t know what to do next. ??
Please help me !

Finally got it working. I removed this lines from public_html directory:
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
and the SymLinksIfOwnerMatch from Options line.
:slight_smile: