Firefox zeigt nur Quelltext, IE die Seite
-
- Posts: 58
- Joined: 2003-11-24 09:16
Firefox zeigt nur Quelltext, IE die Seite
Hallo Community,
ich habe leider keinen Eintrag in der Suche gefunden.
Zu meinem Prob:
Wenn ich die Domain http://www.domain.de/ von meinem Server im Firefox öffne, dann erscheint nur der Quelltext der Seite. Die gleiche Domain im Internet-Explorer geöffnet wird die Seite normal angezeigt.
Ich vermute einen Fehler im Apache, oder woran könnte das liegen ?
Benötigt ihr irgendwelche Logfiles oder ist das Problem bekannt ?
ich habe leider keinen Eintrag in der Suche gefunden.
Zu meinem Prob:
Wenn ich die Domain http://www.domain.de/ von meinem Server im Firefox öffne, dann erscheint nur der Quelltext der Seite. Die gleiche Domain im Internet-Explorer geöffnet wird die Seite normal angezeigt.
Ich vermute einen Fehler im Apache, oder woran könnte das liegen ?
Benötigt ihr irgendwelche Logfiles oder ist das Problem bekannt ?
Last edited by chrisg on 2007-10-17 15:50, edited 1 time in total.
-
- Posts: 133
- Joined: 2004-03-30 14:44
Re: Firefox zeigt nur Quelltext, IE die Seite
Code: Select all
bash-3.1$ w3m -dump_head http://www.domaintuning.de/
HTTP/1.1 200 OK
...
Content-Type: text/plain
-
- Posts: 207
- Joined: 2005-06-02 11:58
Re: Firefox zeigt nur Quelltext, IE die Seite
Code: Select all
HTTP/1.1 200 OK
Date: Sat, 18 Nov 2006 12:40:44 GMT
Server: Apache/2.0.53 (Linux/SUSE)
Last-Modified: Wed, 15 Nov 2006 23:23:35 GMT
ETag: "c00e49c-308-422516c820bc0"
Accept-Ranges: bytes
Content-Length: 776
Connection: close
Content-Type: text/plain
-
- Posts: 58
- Joined: 2003-11-24 09:16
Re: Firefox zeigt nur Quelltext, IE die Seite
äh ja ... wo ändere ich das ?
-
- Posts: 207
- Joined: 2005-06-02 11:58
Re: Firefox zeigt nur Quelltext, IE die Seite
In der Apache Konfigurationsdatei.
-
- Posts: 58
- Joined: 2003-11-24 09:16
Re: Firefox zeigt nur Quelltext, IE die Seite
okay, falsch formuliert...
was muss ich in der datei in was ändern ?
was muss ich in der datei in was ändern ?
-
- Posts: 133
- Joined: 2004-03-30 14:44
Re: Firefox zeigt nur Quelltext, IE die Seite
Stichwort mod_mime: regelt die Zuordnung von Dateinamen zu Handlern und Content-Types.
-
- Posts: 58
- Joined: 2003-11-24 09:16
Re: Firefox zeigt nur Quelltext, IE die Seite
Code: Select all
#
# mod_mime configuration:
# associate various bits of "meta information" with files by their filename extensions
#
# see http://httpd.apache.org/docs-2.0/mod/mod_mime.html
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
<IfModule mod_negotiation.c>
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback
</IfModule>
#
# Commonly used filename extensions to character sets. You probably
# want to avoid clashes with the language extensions, unless you
# are good at carefully testing your setup after each change.
# See http://www.iana.org/assignments/character-sets for the
# official list of charset names and their respective RFCs.
#
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
# The set below does not map to a specific (iso) standard
# but works on a fairly wide range of browsers. Note that
# capitalization actually matters (it should not, but it
# does for some browsers).
#
# See http://www.iana.org/assignments/character-sets
# for a list of sorts. But browsers support few.
#
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
# Shortcut icons don't seem to be registered by IANA yet, but they
# are so commonly used that we add them here.
Addtype image/x-icon .ico
#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
# to be distributed in multiple languages.)
#
AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
# Guess the MIME type of a file by looking at a few bytes of its contents
# http://httpd.apache.org/docs-2.0/mod/mod_mime_magic.html
<IfModule mod_mime_magic.c>
MIMEMagicFile /etc/apache2/magic
</IfModule>
AddOutputFilter INCLUDES .shtml
-
- Posts: 60
- Joined: 2005-05-31 16:23
- Location: Dresden
Re: Firefox zeigt nur Quelltext, IE die Seite
Bei mir (Debian) gibt es in der /etc/apache/httpd.conf eine Zeile
und in der /etc/mime.types steht:
Bedeutet also wenn ich das richtig verstehe, das die Dateien mit der Endung htm, html oder shtml diesen Content-Type text/html kriegen.
Code: Select all
TypesConfig /etc/mime.types
Code: Select all
text/html htm html shtml
-
- Posts: 427
- Joined: 2006-10-03 01:31
Re: Firefox zeigt nur Quelltext, IE die Seite
Kannst Du das in dieser Sektion eintragen:
Am Anfang sollte jedoch auch irgendwo "TypesConfig" stehen. Dahinter steht eine Datei, in der mimetypes angegeben sind, die muß existieren und die Zeile
sollte dort drin sein(vorallem das htm für Dich). Das sind die Defaults. Da sollten keine Kuriositäten drinstehen. Ob ".htm" eine Kuriosität ist oder normal, darfst Du selber entscheiden.
@franky TypesConfig ist NCSA ...
Code: Select all
AddType text/html html htm shtml
Code: Select all
text/html html htm shtml
@franky TypesConfig ist NCSA ...