Advertisement

08.02.2007 at 07:27AM PDT, ID: 22737538
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Enabling Server side includes via webmin

Asked by pdanese in Server Side Includes (SSI), Apache Web Server, Linux Administration

Tags: , ,

Hi, Im using an Apache-AdvancedExtranetServer/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
[+][-]08.03.2007 at 06:32AM PDT, ID: 19624693

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Server Side Includes (SSI), Apache Web Server, Linux Administration
Tags: webmin, ssi, apache
Sign Up Now!
Solution Provided By: Nopius
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.03.2007 at 06:54AM PDT, ID: 19624908

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.03.2007 at 07:04AM PDT, ID: 19624998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32