Michael Stemper
2012-10-01 15:09:13 UTC
I cannot figure out how to enable server-side includes in my site's
root directory. (I don't even know if this is the right term. It's
the directory that gets served up in response to "http://127.0.0.1/"
or "http://localhost/".)
I've managed to enable SSI for user directories without any problem,
with the following directives:
<Directory /home/*/public_html/>
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Directory>
I have tried copying those directives and modifying them to refer to:
<Directory />
<Directory /var/www>
<Directory /var/www/>
None of these has any apparent effect. I restart the server, and call
up my test page, but the content that I expect is not included. The
error log gives the following message when I call up a *.shtml file
from /var/www:
[Sat Sep 29 15:27:55 2012] [warn] [client 127.0.0.1] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
Since "Options +Includes" is right in there, it would seem that I'm not
specifying the directory properly. What is the proper way to refer to
this directory?
root directory. (I don't even know if this is the right term. It's
the directory that gets served up in response to "http://127.0.0.1/"
or "http://localhost/".)
I've managed to enable SSI for user directories without any problem,
with the following directives:
<Directory /home/*/public_html/>
Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</Directory>
I have tried copying those directives and modifying them to refer to:
<Directory />
<Directory /var/www>
<Directory /var/www/>
None of these has any apparent effect. I restart the server, and call
up my test page, but the content that I expect is not included. The
error log gives the following message when I call up a *.shtml file
from /var/www:
[Sat Sep 29 15:27:55 2012] [warn] [client 127.0.0.1] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
Since "Options +Includes" is right in there, it would seem that I'm not
specifying the directory properly. What is the proper way to refer to
this directory?
--
Michael F. Stemper
#include <Standard_Disclaimer>
Life's too important to take seriously.
Michael F. Stemper
#include <Standard_Disclaimer>
Life's too important to take seriously.