passing value from Python3 script back to RewriteMap MapType prg in Apache24
Benedikt Kroll <benedikt.kroll at der-arbeitende.de> writes:
> using a Python script as a Rewrite Map with MapType prg in Apache 2.4, I'm having trouble
> passing the value back to Apache.
> The log says "map lookup OK", but the value is empty.
> According to the Apache documentation (https://httpd.apache.org/docs/current/rewrite/rewritemap.html#prg), the script "should return one new-line terminated response string on STDOUT" which is then used as the rewrite target.
> I have tried to do this using:
> sys.stdout.write(newValue + "/n")
Should this not be "\n" rather than "/n"?