* Apache 1.3.20 for WinCE
*
* Time-stamp: <04/05/02 20:17:39 keuchel@netwave.de>

ApacheCE is based on the WinNT port, with lot's of dirty
modifications. It compiles with my celib.dll.

ApacheCE uses only one process and allocates only 10 threads. This
should be no problem for a local test server.

The window can be hidden/shown by clicking on the tray icon.

If something goes wrong, messages might be found in \apache-stderr.txt.

You can set APACHEDIR in HKLM\Environment to point to the server
installation dir. Otherwise the path of the apache binary is taken.

* CGI (OLD)

CGI currently only works with one request at a time. Environment
variables are written to \cgi-env.txt and output of the cgi is
expected in \cgi-out.txt. Input from post is in \cgi-in.txt.

It's the script's responsibility to process/create these files, as it
is not possible in WinCE to pass environment, filehandles, pipes to
child processes.

\cgi-out.txt is processed by the server when the child/script has
terminated.

See printenv.pl for a sample of how to process these files.

* CGI (NEW)

CGI now works with pipes which means that only programs that use
celib.dll can be used for CGI.

The environment is now passed directly to child processes, although
the env file is still written.

See printenv2.pl for a new sample.

* CGI

To use the registry for interpreter selection, you must set
"ScriptInterpreterSource" in httpd.conf, as in the example
below. Otherwise the shebang line will be used. You need
the right entries in HKEY_CLASSES_ROOT, of course.

<Directory "/speicherkarte/apache/cgi-bin">
	ScriptInterpreterSource registry
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>

* Installation

- Unpack the tarball on your PC. When you use WinZip, turn off
  smart-crlf-conversion. 

- Fix paths and other entries in apache/conf/httpd.conf.

- Copy the apache directory to your device.

- Copy celib.dll to your \windows directory.

- If you want to use perl cgi-scripts, check the .pl/plfile entries
  in the registry on your device.

* Problems/Todo

- Apache might hang the machine when closing it's window. Seems to be
  fixed now.

- IE shows file save dialog when cgi-output has Content-type:
  text/plain and the script has .pl extension. Seems to be IE bug.

- stderr cannot be redirected to error log due to currently
  unimplemented dup() call. Ignore this message.

- CGI requests should be mutex-locked in the server.

- Perl should not show the console. Maybe build a non-console perl.

  New programs that are linked with the console now check the option
  --noconsole. You would have to put this option in the 
  SHELL/OPEN/COMMAND entry, but you cannot start .pl files with
  console by doubleclicking anymore...

- The perl dll should be loaded and called directly. This would make
  perl cgi much faster...

- Editing perl cgi-scripts on PPC is difficult because the standard
  file requester is very limited.

- The TrayIcon appears in PPCEM, but clicking it has no effect.

- Perl in Emulation has auto-close-file problem on exit. Console
  does not call exit() in emulation.

- Task-switching on PPCEM is a bit complicated. You have to use the
  memory applet. It does not work always. Maybe write a task switcher.
