Networking Forums

Networking Forums > Computer Networking > Linux Networking > trivial SSI doesn't work in apache2

Reply
Thread Tools Display Modes

trivial SSI doesn't work in apache2

 
 
louhinman@gmail.com
Guest
Posts: n/a

 
      01-30-2009, 01:25 AM
I am running Debian Linux 3.1 on a Dell Dimension 4100 desktop. (This
host is 192.168.2.2 on my LAN.) I'm running apache2, and doing some
"finger exercises" to get better acquainted.

I created a trivial SSI and configured apache2 to serve it:

Document Root is /var/www in /etc/apache2/sites-enabled/000-default.

I added

<Location /ssi>
Options Includes
</Location>

and

<Location /ssi>
Options IncludesNoExec
</Location>

to /etc/apache2/sites-enabled/000-default.

I ran:

# a2enmod include
This module is already enabled!

and

# /etc/init.d/apache2 force-reload

I created /var/www/ssi, and in this directory I ran:

echo "top stuff" > top.html
echo "bottom stuff" > bottom.html

Then I created middle.shtml:

<!--#include virtual="top.html"-->
middle stuff!
<!--#include virtual="bottom.html"-->

Firefox serves my home page http://192.168.2.2 as expected.

When I point Firefox at http://192.168.2.2/middle.shtml
I expect to get the output:

top stuff
middle stuff!
bottom stuff

Instead, Firefox reports Error 404 ("Object not found!")

What am I missing here?

Thanks, as always, for your help.

Best Regards,

Vwaju
New York City
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
D-Link DI-624 Doesn't work. big_d_316@yahoo.com Wireless Internet 5 11-30-2008 03:41 PM
apt-get doesn't work Fab Linux Networking 2 03-11-2007 02:20 PM
Connected but it doesn't work anyway! Maj T Wireless Networks 0 06-13-2005 01:47 PM
NIC doesn't work SGNOME Windows Networking 3 01-14-2004 01:41 PM
Re: TCP/IP doesn't work on LAN Steve Winograd [MVP] Windows Networking 2 07-14-2003 09:09 PM



1 2 3 4 5 6 7 8 9 10 11