httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wilhelm Kleinoeder <wilhelm.kleinoe...@fen-net.de>
Subject [users@httpd] SSI, <!--#exec cmd='...' not parsed correctly in /home/*/public_html
Date Tue, 27 Apr 2004 20:59:48 GMT
Hi,

I'm running Apache/2.0.48 on Linux/SuSE.
I use SSI command in my index.shtml in /home/*/public_html. But only the 
echo commands are parsed correctly, e. g.

<B>Webserver Version:</B><br>
[ <!--#echo var="SERVER_SOFTWARE" --> ]<br>

results in :
Webserver Version:
[ Apache/2.0.48 (Linux/SuSE) ].

Exec commands like
[ <!--#exec cmd='echo "`hostname -f`, Kernel: `uname -r` (`uname -m`)"' 
--> ]
don't show a result []. There is also no hint in error_log, but 
suexec.log tells:
[2004-04-27 22:37:32]: uid: (500/willi) gid: (100/100) cmd: null || echo 
SuSE Linux) | head -1
[2004-04-27 22:37:32]: cannot stat program: (null || echo SuSE Linux) | 
head -1)
Checking the http-server configuration with YaST, I can see that the 
suexec module is activated. When I try to deactivate it, YaST don't 
change the status (so it is always activated).

For me it looks like "Options IncludesNoExec" is set, but the 
mod_userdir.conf has set "Options Includes":

<IfModule mod_userdir.c>
     UserDir disabled root
     <Directory /home/*/public_html>
         AllowOverride All
         Options MultiViews Indexes Includes
         <Limit GET POST OPTIONS PROPFIND>
             Order allow,deny
             Allow from all
         </Limit>
         <LimitExcept GET POST OPTIONS PROPFIND>
             Order deny,allow
             Deny from all
         </LimitExcept>
      </Directory>
</IfModule>

Additionally the .htaccess is set to:

AddType text/html .shtml
AddHandler server-parsed .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes

The directories under public_html are read and execute by everyone. The 
files are read by everyone.

If I move the index.shtml file to the document root (/srv/www/htdocs) of 
the webserver, then the file is parsed correctly. So I'm sure that the 
mistake is not in my index.shtml.

But what else can cause that mistake?

Thanks
Wilhelm

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message