[users@httpd] Problem with multiple SSIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxx
    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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux