SSI ausserhalb von xampp

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

SSI ausserhalb von xampp

Postby TBaDDadE » 16. December 2004 16:28

Hallo ich habe eine Frage:

Mein Installordner für xampp
C:/xampp

Mein htdocs Ordner
C:/xampp_htdocs


Kann es sein das ssi nur im xampp eigenen htdocs ordner läuft?

Wenn ja, wie kann ich das auch auf meinen eigenen htdocs ordner zum laufen bringen? php funktioniert aber meine ssi´s leider nicht.

danke und vorweihnachtliche grüße

thomas
TBaDDadE
 
Posts: 11
Joined: 09. December 2004 18:33

Postby Rolidor » 17. December 2004 00:44

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
Rolidor
 
Posts: 406
Joined: 20. April 2004 10:17
Location: Dreieich - Hessen


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 147 guests