Mathias Bigge: Einbindung SSI

Beitrag lesen

Hi Zeromancer,

... den Hinweis gefunden, dass ich meine einzufügenden Dateien auf die Endung *.shtml
Die Dateien, in die eingefügt wird, oder?
Nee, ich glaube nicht:

Apache Tutorial:
"Not just any file is parsed for SSI directives. You have to tell Apache which files should be parsed. There are two ways to do this. You can tell Apache to parse any file with a particular file extension, such as .shtml, with the following directives:
        AddType text/html .shtml
        AddHandler server-parsed .shtml
One disadvantage to this approach is that if you wanted to add SSI directives to an existing page, you would have to change the name of that page, and all links to that page, in order to give it a .shtml extension, so that those directives would be executed.

The other method is to use the XBitHack directive:
        XBitHack on
XBitHack tells Apache to parse files for SSI directives if they have the execute bit set. So, to add SSI directives to an existing page, rather than having to change the file name, you would just need to make the file executable using chmod.
        chmod +x pagename.html"

Integrieren kannst Du dann verschiedene Dateitypen, Textdateien, Resultate von CGI-Programmen usw.

Viele Grüße
Mathias Bigge