Current time: 06-26-2024, 05:30 PM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT] index.htm
Author Message
anne123 Offline
Junior Member
*

Posts: 237
Joined: Oct 2007
Reputation: 0
Post: #1
[ERLEDIGT] index.htm
Hallo Leute, erst mal allen einen schönen Sonntag.

Wie kann ich einstellen, dass die Startseite auch mit .htm enden darf? Im Moment wird nur .html akzeptiert.
In meiner apache2.conf steht folgendes drin.
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
(This post was last modified: 01-21-2008 04:35 PM by BeNe.)
01-20-2008 10:48 PM
Find all posts by this user
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #2
RE: index.htm
Addicon ist hier der falsche befehl. Such mal nach addhandler

bsp aus einem meiner v-hosts:
Code:
<Location /scripts>
     AddHandler server-parsed .shtml
</Location>

hier der docu eintrag von apache:
http://httpd.apache.org/docs/1.3/mod/mod...addhandler
(This post was last modified: 01-20-2008 11:05 PM by Zothos.)
01-20-2008 11:02 PM
Find all posts by this user
MoritzDorn Offline
Junior Member
*

Posts: 178
Joined: Nov 2007
Reputation: 0
Post: #3
RE: index.htm
anne123 Wrote:Hallo Leute, erst mal allen einen schönen Sonntag.

Wie kann ich einstellen, dass die Startseite auch mit .htm enden darf? Im Moment wird nur .html akzeptiert.
In meiner apache2.conf steht folgendes drin.
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

Einen schönen Sonntag zurück,

das was du da hast, sagt dem Server nur, welchem Dateitypen er welches Icon zuordnet, und dies wird nur beim Directory Listing gemacht, das hat nichts mit der Endung von html / htm zu tun.
Ich starte nur mal mein Rechner neu, dann schau ich auch mal rein.
01-20-2008 11:04 PM
Visit this user's website Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #4
RE: index.htm
http://httpd.apache.org/docs/2.2/mod/mod...ctoryindex
01-21-2008 03:47 AM
Visit this user's website Find all posts by this user
anne123 Offline
Junior Member
*

Posts: 237
Joined: Oct 2007
Reputation: 0
Post: #5
RE: index.htm
Habe ein paar Änderungen vorgenommen, aber kein Erfolg.

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 .htm
AddOutputFilter INCLUDES .shtml .htm
</IfModule>
01-21-2008 03:47 AM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: index.htm
mach das rückgängig! hat nichts mit dem problem zu tun...
01-21-2008 03:48 AM
Visit this user's website Find all posts by this user
anne123 Offline
Junior Member
*

Posts: 237
Joined: Oct 2007
Reputation: 0
Post: #7
RE: index.htm
rbtux Wrote:mach das rückgängig! hat nichts mit dem problem zu tun...

Ok danke habe ich rückgängig gemacht. Tja und nun....
01-21-2008 04:39 AM
Find all posts by this user
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #8
RE: index.htm
Die Lösung hat rbtux doch schon gepostet: die Direktive DirectoryIndex um den gewünschten Wert erweitern.
01-21-2008 04:52 AM
Find all posts by this user
anne123 Offline
Junior Member
*

Posts: 237
Joined: Oct 2007
Reputation: 0
Post: #9
RE: index.htm
Hm und wo finde ich die? Ich kenne den Pfad nicht.
01-21-2008 05:03 AM
Find all posts by this user
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #10
RE: index.htm
Wenn es für alle Kunden sein soll, ist es am einfachsten die Datei /etc/apache2/mods-available/dir.conf zu bearbeiten. Wenn es für einen einzelnen Kunden sein soll, packt man den Inhalt aus dieser Datei in die Apache-Config-Datei eines Kunden.
01-21-2008 05:19 AM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)