Hi guys,
I'm running Debian v 2.6.8.1-386 with Apache 2.
What ever i do i cannot get .shtml files to run as serverside includes. I'm trying to run a perl script from a webpage.
I've edited the apache2.conf file to add
AddType text/html .shtml
<FilesMatch "\.shtm(\.+)?$">
SetOutputFilter INCLUDES
</FilesMatch>
I've also tried the old command of
AddOutputFilter INCLUDES .shtml
In my 000defualt file i've added
INCLUDES and Ive tried Includes and i've tried +Includes to the directory options for document root /var/www and directory /var/www i've even tried adding it to the directory for the cgi-bin
I've restarted apache and rebooted the server but it just won't work.
The perl script runs fine i run it from the cgi-bin direct
I'm trying to call it by
<div align="center"><font face="Comic Sans MS" color="Red"><BR><BR><h1>
<!-- #exec cgi="cgi-bin/quote.cgi"--></h1></font></div>
And in desperation i tried
<!--#include virtual="/cgi-bin/quote.cgi"-->
Any help will be greatly apreciated.
Thanks
Damian
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Debian and Apache 2 server side include
-
- Posts: 2
- Joined: 2005-11-20 19:14
I'm having the same problem with Apache 2. I've modified every confirguration file I can find, and restarted the server after each attempt, yet server side includes simply do not work.
Is there anyone with SSI working on their Debian apache2 installation? If so, what does your apache2.conf file look like?
Is there anyone with SSI working on their Debian apache2 installation? If so, what does your apache2.conf file look like?
-
- Posts: 2
- Joined: 2005-11-20 19:14
Sorted
>If so, what does your apache2.conf file look like
Sorted it's not the config at all but a missing module. Use the package manager to add this module
a2enmod include
Restart Apache2
SSI will now work though you will have to use the virutal call method
Damian
Sorted it's not the config at all but a missing module. Use the package manager to add this module
a2enmod include
Restart Apache2
SSI will now work though you will have to use the virutal call method
Damian
A truly wise man never plays leapfrog with a unicorn