Hi.
TBaDDadE wrote:Kann es sein das ssi nur im xampp eigenen htdocs ordner läuft?
Wenn du es in der httpd.conf nicht geändert hast, dann ist der ordner xampp\htdocs das Rootverzeichnis des Servers. Wenn du mit SSI arbeiten willst, müssen alle einzubindenden Dateien irgendwo in diesem Verzeichnis oder in einem darunter liegen. Ich gehe mal davon aus, dass bei dir alles unterhalb
htdocs liegt.
Öffne mit einem Editor die Datei c:\xampp\apache\conf\httpd.conf und suche folgende Zeilen
- Code: Select all
<Directory "C:/Programme/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI Multiviews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler cgi-script .cgi .pl
...
</Directory>
Wenn hinter Options kein
Includes angegeben ist, dann musst du sie dort einfügen (wie oben). Dann suche Folgendes
- Code: Select all
# 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.)
#
#AddOutputFilter INCLUDES .shtml
Dort entkommentierst du die Zeile mit
AddOutputFilter, indem du das Doppelkreuz (#) davor entfernst. Das Ganze abspeichern und freuen.
Gruß
Rolo