Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache & SSI-Module für ServerSideInclude
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
mec
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 147
Location: Munich

PostPosted: Wed Jul 30, 2003 11:11 am    Post subject: Apache & SSI-Module für ServerSideInclude Reply with quote

Hi,

ich möchte auf meinem Webserver virtual-include in den HTML-Dokumenten machen (*.shtml).

Hierzu habe ich in der /etc/apache/conf/commonapache.conf ...
Quote:

<Directory "/home/httpd/htdocs">
Options Indexes FollowSymLinks MultiViews Includes ExecCGI

und
Quote:

AddType text/html .shtml
AddType text/x-server-parsed-html .html
AddHandler server-parsed .shtml


...eingetragen. Aber die Squenz <!--#include virtual="pla.html" --> wird nicht ausgeführt....

Irgendwas fehlt dem Apachen noch. Wobei das Module mod_include.c drinn ist. :(

cu
michi
_________________
IBM T43 Centrino 2GHz - Shuttle-X P4
-------------------------------------------
LinuxUser #321097
-------------------------------------------
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Wed Jul 30, 2003 6:05 pm    Post subject: Reply with quote

Code:
AddType text/html .shtml
AddType text/x-server-parsed-html .html


Sicher dass das so richtigrum ist ? Und ist pla.html auch im selben Verzeichnis wie die .shtml Datei wo der #include Befehl drinsteht ? Irgendwas verdächtiges in den Logfiles ?
Back to top
View user's profile Send private message
mec
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 147
Location: Munich

PostPosted: Wed Jul 30, 2003 8:28 pm    Post subject: Fehlercode 200 3385 Reply with quote

In den logs habe ich nur verdächtiges in der access.log gefunden

Access.log
Quote:

<ipadresse> - - [30/Jul/2003:22:06:52 +0200] "GET /folder-old/_ssi/t1.html HTTP/1.0" 200 3385 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030729"


sonst alles nix, bzw. normal. Die jeweiligen Dateien sind auf jd. Fall manuell über Browser erreichbar. Sind kann hat einfach nicht zusammengestellt werden. So äusseert es sich zuminderst. Aber vielleicht hat ja die o.g. Fehlermeldung damit zu tun. Mir sagt der Fehlercode 200 3385 zumindest nix.


--> Ob die Daten in der commonapache.conf richtig sind, kann ich nicht zu 100% bestätigen. Wieso hast du einen anderen Eintrag? Geht bei Dir die SHTML-Seitenzusammstellung.



cu
Michi
_________________
IBM T43 Centrino 2GHz - Shuttle-X P4
-------------------------------------------
LinuxUser #321097
-------------------------------------------
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Wed Jul 30, 2003 9:14 pm    Post subject: Reply with quote

Hmm, ist das Apache 1 oder 2 ?

In meiner commonapache2.conf (Standardconfig) steht für SSI folgendes:
Code:

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml


Der Contenttype für .html bei dir kommt mir komisch vor.
Back to top
View user's profile Send private message
mec
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 147
Location: Munich

PostPosted: Wed Jul 30, 2003 10:43 pm    Post subject: Reply with quote

Ach ja stimmt, war in der alten httpd.conf auch so. Aber seit ich 2.0 habe funktionieren gewisse dinge nicht mehr.

So jetzt habe ich den OutputFilter definiert nach AddTyp - Html. Den alten x-server-Eintrag habe ich rausgenommen. Bei Options habe +Includes eingetragen.

Aber jetzt bekomme ich immer den Fehler
Quote:
Syntax error on line 400 of /etc/apache/conf/commonapache.conf:
Invalid command 'AddOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration


So wie es da steht fehlt mir ein Modul...aber welches????:?:


In der Version <2 war alles in der httpd.conf, da war es noch übersichtlicher....
_________________
IBM T43 Centrino 2GHz - Shuttle-X P4
-------------------------------------------
LinuxUser #321097
-------------------------------------------
Back to top
View user's profile Send private message
mec
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 147
Location: Munich

PostPosted: Wed Jul 30, 2003 11:00 pm    Post subject: DANKE Reply with quote

merci...ich habe es gefunden.

ach wie peinlich....der Servername lautete falsch!!!

Danke
Michi
_________________
IBM T43 Centrino 2GHz - Shuttle-X P4
-------------------------------------------
LinuxUser #321097
-------------------------------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum