httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50814] New: SSI exec not working on Windows (Apache 2.x)
Date Mon, 21 Feb 2011 20:35:37 GMT
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: bugs@httpd.apache.org
        ReportedBy: kilroy155@gmail.com


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':
&gt;&gt;<!--#exec cmd="c:/windows/system32/hostname.exe" -->&lt;&lt;


- 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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message