httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Kippes <kipp...@yahoo.com>
Subject [users@httpd] Problem with multiple SSIs
Date Mon, 28 Nov 2005 03:42:27 GMT
Is this some strange configuration issue?

I'm using 2.0.55 with Apache configured using the following:

./configure --prefix=/usr/local/www  --enable-cgi --enable-headers
--enable-expires --enable-mime-magic --enable-logio --enable-deflate
--enable-rewrite

I'm using the default httpd.conf with the following addition at the
end:

LoadModule php4_module        modules/libphp4.so
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /www/webroot
    ServerName dummy-host.example.com
    ErrorLog /www/logs/error_log
    CustomLog /www/logs/access_log common

    AddType text/html .shtml
    AddOutputFilter Includes .shtml

    AddType application/x-httpd-php .php

    <Directory /www/webroot>
      Options +Includes
    </Directory>
</VirtualHost>

I can get server-side includes to work individually.  But if I place
a PHP SSI in the middle, it doesn't work--I get no response from the
server.

The following top-level file (test.shtml) works:

PHP:<br> <!--#include virtual="test.php" -->
HTML:<br> <!--#include virtual="test.html" -->

But I get the empty response when I change the file to this:

HTML:<br> <!--#include virtual="test.html" -->
PHP:<br> <!--#include virtual="test.php" -->
HTML:<br> <!--#include virtual="test.html" -->

Any ideas where I'm going wrong?  Is this a possible Apache bug?  Or
just some incorrect setting?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message