I think I am definitely doing something wrong then... Apache definitely is not running my cmd files for me. Maybe I have a needed option off in the config file (it doesnt run PHP files either, unless they have the php extension).
You should put your cmd file into /Apache2/cgi-bin. Default httpd.conf (that is copied from httpd.conf.sample) allows to run scripts only in this directory.
Single steps to test simple rexx script that I did...
1. Unpack Paul's Apache 2.2.8 into root directory of any drive e.g. e:\ .
2. Edit e:\Apache2\startup.cmd to change drive letter from u: to e: .
3. Copy e:\Apache2\conf\httpd.conf.sample to e:\Apache2\conf\httpd.conf
4. Run e:\Apache2\startup.cmd
5. Open
http://localhost/ by web browser and see "It works!".
6. Copy attached test.cmd into e:\Apache2\cgi-bin
7. Open
http://localhost/cgi-bin/test.cmd and see current date and time.
If you want to place your script files other than cgi-bin directory, you need to customize httpd.conf around:
- ScriptAlias directive
or
- ExecCGI option for Index directive
- AddHandler directive for .cmd file