Страница 1 из 1

awstats+Firefox = код страницы

Добавлено: 2014-09-28 15:27:26
Gamerman
Жил-был когда то сабж. Потом перешел на apache24, при этом под ним не работал mod_perl2. Забил на сабж, но потом увидел, что таки подправили mod_perl2 и он таки собрался. Начал прикручивать все обратно. С удивлением заметил, что под старым (8-я версия) експлорером виндовым страничка отображается правильно, а при свежем фаерфоксе, вместо страницы - html-код. С чего бы это вдруг и где и что пилить?

Re: awstats+Firefox = код страницы

Добавлено: 2014-09-28 19:51:41
Alex Keda
в сторону типов файлов обрабатываемых апачем

Re: awstats+Firefox = код страницы

Добавлено: 2014-09-28 19:57:16
Gamerman
Так апач перловый файл обрабатывает коректно, так как передает html-код, который експлорер нормально отображает, а фаерфокс - нет.

Re: awstats+Firefox = код страницы

Добавлено: 2014-09-28 19:59:28
Alex Keda
значит в сторону заголовков

Re: awstats+Firefox = код страницы

Добавлено: 2014-09-28 20:04:26
Gamerman
Вот часть того, что отображается в фаерфоксе. При этом, копируя модержимое окна, и локально сохранив я открываю этот файл фаерфоксом и все красиво отображается. Может у меня фаерфокс поломался? :) Нужно будет на других проверить.

Код: Выделить всё

Content-type: text/html; charset=windows-1251
Cache-Control: public
Last-Modified: Sun Sep 28 17:01:57 2014
Expires: Sun Sep 28 17:01:57 2014

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ua">
<head>
<meta name="generator" content="AWStats 7.3 (build 20140126) from config file awstats.gamer.uz.ua.conf (http://www.awstats.org)">
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<meta http-equiv="description" content="Awstats - Advanced Web Statistics for  gamer.uz.ua  (2014-09) - main">
<title>Статистика сайту  gamer.uz.ua  (2014-09) - main</title>
<style type="text/css">
body { font: 11px verdana, arial, helvetica, sans-serif; background-color: #FFFFFF; margin-top: 0; margin-bottom: 0; }
.aws_bodyl  { }
.aws_border { border-collapse: collapse; background-color: #CCCCDD; padding: 1px 1px 1px 1px; margin-top: 0px; margin-bottom: 0px; }
.aws_title  { font: 13px verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #CCCCDD; text-align: center; margin-top: 0; margin-bottom: 0; padding: 1px 1px 1px 1px; color: #000000; }
.aws_blank  { font: 13px verdana, arial, helvetica, sans-serif; background-color: #FFFFFF; text-align: center; margin-bottom: 0; padding: 1px 1px 1px 1px; }
.aws_data {
	background-color: #FFFFFF;
	border-top-width: 1px;   
	border-left-width: 0px;  
	border-right-width: 0px; 
	border-bottom-width: 0px;
}
.aws_formfield { font: 13px verdana, arial, helvetica; }
.aws_button {
	font-family: arial,verdana,helvetica, sans-serif;
	font-size: 12px;
	border: 1px solid #ccd7e0;
	background-image : url(/awstatsicons/other/button.gif);
}
th		{ border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; }
th.aws	{ border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font-size: 13px; font-weight: bold; }
td		{ border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; }
td.aws	{ border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; padding: 0px;}
td.awsm	{ border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; padding: 0px; }
b { font-weight: bold; }
a { font: 11px verdana, arial, helvetica, sans-serif; }
a:link    { color: #0011BB; text-decoration: none; }
a:visited { color: #0011BB; text-decoration: none; }
a:hover   { color: #605040; text-decoration: underline; }
.currentday { font-weight: bold; }
</style>
</head>
PS. Проверил на другой машине - та же беда. Правда версии фаерфоксов одинаковые.