https://issues.apache.org/bugzilla/show_bug.cgi?id=50814
Summary: SSI exec not working on Windows (Apache 2.x)
Product: Apache httpd-2
Version: 2.2.17
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: normal
Priority: P2
Component: mod_include
AssignedTo: [email protected]
ReportedBy: [email protected]
We are unable to use 'exec' with Server Side Includes to execute commands and
get the output on a Windows system using either 2.2.17 or 2.0.64. It does
appear to work on 1.3.28.1. We have tried Windows 2003 SP2, Windows XP SP3,
and an older Windows 2000 system.
We used the documentation at: http://httpd.apache.org/docs/2.2/howto/ssi.html
To reproduce:
- Configure SSI. In the .conf:
a) In the <Directory> section of the DocumentRoot, change the Options value
so it has 'Includes'. We used:
Options All
b) Uncomment these lines:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
- Place an 'index.shtml' file in the DocumentRoot dir root. We used a simple
one with the following contents:
<br/>
<!--#set var="FOOBAR" value="SSI is working" -->
<!--#echo var="FOOBAR" -->
<br/>
<pre>
Here is output of the internal 'dir' command: <!--#exec cmd="dir" -->
</pre>
<br/>
Here is output from exec of 'c:/windows/system32/hostname.exe':
>><!--#exec cmd="c:/windows/system32/hostname.exe" --><<
- Start the server and access the 'index.shtml' document in your browser.
The output shows the 'SSI is working' string, but there is no output from
the 'dir' and 'hostname.exe' execs for 2.x, but there is for 1.3.28.1
It doesn't seem to matter whether the server is started as a service or from
the command-line, but when started from the command-line we have noticed
cmd-prompt windows popping up very briefly and then disappearng, as if the
exec'ed commands may be running within them.
Note: The config for 1.3.28.1 is slightly different per the 1.3 documentation:
http://httpd.apache.org/docs/1.3/howto/ssi.html
It uses:
AddHandler server-parsed .shtml
whereas 2.x uses:
AddOutputFilter INCLUDES .shtml
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]