I am running Debian Linux 3.1 (debian-31r8-i38g-netinst.iso) 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, following Linux System Administration (O'Reilly), and configured apache2 to serve it:
Document Root is /var/ /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/ 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 as expected. (From the internet: For reaons I haven't figured out yet, I can't reach my home page from my own LAN using the my domain name.)
When I point Firefox at I expect to get the output:
top stuff
middle stuff!
bottom stuff
Instead, Firefox reports Error 404 ("Object not found!")
If I exectute:
If I point Firefox at
I get a single line of output:
"middlestuff" (the SSI's are not recognized).
What am I missing here?
Thanks for your help!
Best Regards,
Vwaju
New York City
I created a trivial SSI, following Linux System Administration (O'Reilly), and configured apache2 to serve it:
Document Root is /var/ /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/ 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 as expected. (From the internet: For reaons I haven't figured out yet, I can't reach my home page from my own LAN using the my domain name.)
When I point Firefox at I expect to get the output:
top stuff
middle stuff!
bottom stuff
Instead, Firefox reports Error 404 ("Object not found!")
If I exectute:
If I point Firefox at
I get a single line of output:
"middlestuff" (the SSI's are not recognized).
What am I missing here?
Thanks for your help!
Best Regards,
Vwaju
New York City