html extension not work, very strange

upsforum

Well-Known Member
Jul 27, 2005
474
0
166
I have a vps with a problem, on any account the .html files not work, with a browser I get a download popup for an files with .html extension, instead it work with .htm file extension.

I check httpd.conf, mimetype file and htaccess but I dont understand because this problem is veri first time that I watch this
 

upsforum

Well-Known Member
Jul 27, 2005
474
0
166
this is an htaccess, but i think that not is this cause because I tried the .html file on other accounts and host and same problem

Code:
RewriteEngine On
RewriteBase /subdirectory1/
RewriteRule ^index.php/archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /subdirectory1/wp-feed.php?category_name=$1&feed=$2 [QSA]
RewriteRule ^index.php/archives/category/?(.*) /subdirectory1/index.php?category_name=$1 [QSA]
RewriteRule ^index.php/archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /subdirectory1/wp-feed.php?author_name=$1&feed=$2 [QSA]
RewriteRule ^index.php/archives/author/?(.*) /subdirectory1/index.php?author_name=$1 [QSA]
RewriteRule ^index.php/archives/?([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /subdirectory1/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
RewriteRule ^index.php/archives/?([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /subdirectory1/wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
RewriteRule ^index.php/archives/?([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /subdirectory1/wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /subdirectory1/wp-feed.php?feed=$1 [QSA]
RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /subdirectory1/wp-feed.php?feed=$1&withcomments=1 [QSA]


RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} kb.domainhost.net
RewriteCond %{REQUEST_URI} !subdirectory2/
RewriteRule ^(.*)$ subdirectory2/$1 [L]
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Do you have root SSH access to the machine? If so, could you check the Apache logs when you try to access the .html links:

Code:
tail -fn0 /usr/local/apache/logs/error_log
I imagine you do have root SSH given that httpd.conf was mentioned originally.

Also, can you check for any .htaccess files at the /home or /root level of the machine? Those can override any settings you have elsewhere. I imagine that some directive is being set either in an .htaccess that is at /home or /root level or the php.conf has some setting for .html
 

upsforum

Well-Known Member
Jul 27, 2005
474
0
166
this is my php.conf

Code:
# SuPHP configuration for PHP5
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
<Directory />
    suPHP_AddHandler application/x-httpd-php5
</Directory>

# End of autogenerated PHP configuration.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
I'm getting a file download myself for the index.html one actually. I have been since the forum thread was opened.

At this point, could you open up a ticket with us using WHM > Support Center > Contact cPanel or using the link in my signature.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Which browser are you using, Infopro? I'm using Firefox 3.6.17 on Mac OS X Snow Leopard.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Contents of that file:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Untitled Document</title>
</head>

<body>
<?php echo "xxx"; ?>
cccc
</body>
</html>
Rename that file index.php and try it.