Hi, Im using an Apache-AdvancedExtranetSer
ver/1.3.22
Actually, Im accessing this server through a webhost using webmin and the account is rather restricted in how Im allowed to modify the apache settings (I have to use Webmin for modifications).
What Id like to is enable server side includes on selected files.
Ive tried a number of things but nothing yet works (details below).
First, I have a test file called banner.html that looks like this:
Presumably this should give me the local time when I call the file.
*********************
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!--#echo var="DATE_LOCAL" -->
<br />
xyz
</body>
</html>
**************************
**
Through webmin my apache directives look like this:
(the most relevant directives are the bottom 3)
DocumentRoot /home/xxxx/yyyyy/html
ServerName
www.xxxx.xxx ServerAdmin xxx@xxxxxx.xxx
ServerAlias xxx.com
ErrorLog logs/xxxxx/error_log
RefererLog logs/xxxxxx/referer_log
AgentLog logs/xxxxx/browser_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" ..
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/xxxxxx/access_log "combined"
ErrorDocument 404 /error2.html
Options Includes
XBitHack on
AddHandler server-parsed .html
**************************
**********
***
I have tried various combinations of the bottom 3 directives
e.g.
1
XBitHack on
2
Options Includes
AddHandler server-parsed .html
XBitHack off
3
#here my file was called banner.shtml
Options Includes
AddType text/html .shtml
AddHandler server-parsed .shtml
None of these configurations cause my ssi to be parsed (as judged by viewing the source code of the rendered page).
Also, I know that *other* changes to the directives *will* take effect.
e.g. if I change the 404-error page to a_new_page.html, then a_new_page.html is rendered upon a 404 error.
Also, I do have the execution bits for banner.shtml set to on for user, group and others
QUESTIONS:
Is there some configuration setting that Im missing?
What *should* be the proper configuration?
Is it possible that my web-host does not have mod_include enabled?
How likely is this (I can see no way to load the mod_include module myself from Webmin)?
Thanks!
Start Free Trial