httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [users@httpd] RewriteMap not able to execute python script
Date Tue, 16 Dec 2003 23:30:02 GMT
* Mark Thias <Mark.Thias@bnpi.com> wrote:

> Problem: Trying to use mod_rewrite to load balance per
> http://http.apache.org/docs/misc/rewriteguide.html. I have tried a number of
> configurations but always get the following error upon starting Apache.
> Apache does not start as a result.
> 
>  "(OS 193)%1 is not a valid Win32 application.  : mod_rewrite: could not
> startup RewriteMap program (null)" 
> 
> My environment is as follows: 
>  1. Apache 2.0.48
>  2. Win2K 5.00.2195 Service Pack 3
>  3. Python23
> 
> I installed Python in c:\tools\Python23 and set the windows system path. I
> have run the script from the command line and it works as designed. The
> Python script, proxy.py, resides in my root directory:
...
> I have the following entries in httpd.conf
> 
> RewriteEngine on
> RewriteMap server prg:/proxy.py
> #RewriteMap server prg:c:/proxy.py (tried this)
> #RewriteMap server prg:c:\proxy.py (tried this)

Try referencing the python executable with the script as its first argument
like:

RewriteMap server "prg:c:/path/to/python.exe c:/path/to/proxy.py"

(untested)

nd

---------------------------------------------------------------------
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