Hi!

  I've seen the message below in this python list, that seems to be
unanswered.

  I'm trying to do the pretty same thing.

  There's a way to preprocess the request with a mod_python handler and then
proxying it with mod_proxy?

  Thank you very much in advance, and sorry for trying to revive such an old
message.

Cheers.


>
>whale whale at mycameo.com
>Tue Mar 25 05:49:42 CET 2003
>
>I use Apache2.0.44 and mod_python3.0.1.
>I add ProxyPass and PythonHandler directives in httpd.conf
>## httpd.conf
>ProxyPass  /test/  http://www.test.com
>ProxyPassReverse  /test/   http://www.test.com
><Location />
>    AddHandler python-program .htm .html
>    PythonHandler mptest
></Location>    
>
>
>And mptest.py:
>from mod_python import apache
>def handler(req):
>    req.write('Hello!!')
>    return apache.OK
>
>ex. My apache server is www.server.com.
>When I browsed the local server request(ex.
>http://www.server.com/1.html),
>I received 'Hello!!' response, the python handler worked well.
>But when I browse the proxy request(ex.
>http://www.server.com/test/1.html),
>the response I received is the original content of
>http://www.test.com/1.html, not 'Hello!!'.
>The proxy requests didn't seem to be processed by mod_python handler.
>How could I pre-process the proxy request before mod_proxy module?
>Thanks a lot!!
>



---
David Sanchez Martin
Administrador de Sistemas
[EMAIL PROTECTED]
GPG Key ID: 0x37E7AC1F

E2000 Nuevas Tecnologías
Tel : +34 902 19 61 77
BEGIN:VCARD
VERSION:2.1
N:Sánchez Martín;David
FN:David Sánchez Martín
ORG:E2000 Financial Investments, S.A.;Centro de Nuevas Tecnologías
TITLE:Administrador de Sistemas
TEL;WORK;VOICE:902196177
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA
KEY;X509;ENCODING=BASE64:
    MIICfzCCAeigAwIBAgIQfDrYs+9nGg6LM+khzj6E1zANBgkqhkiG9w0BAQUFADBiMQswCQYD
    VQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UE
    AxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDcwMzI4MTI1NTM5
    WhcNMDgwMzI3MTI1NTM5WjBqMRcwFQYDVQQEEw5TYW5jaGV6IE1hcnRpbjEOMAwGA1UEKhMF
    RGF2aWQxHTAbBgNVBAMTFERhdmlkIFNhbmNoZXogTWFydGluMSAwHgYJKoZIhvcNAQkBFhFk
    c2FuY2hlekBlMjAwMC5lczCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA6MRBLoMUDWpD
    XBtkywilANAeIF+P9gh2FwtPdMAp/+2qWjDBAov+1jvyA8YZXeh3a9l4ZM0FZBjbkC7P9N7h
    P+WMr4Apy98OXzH3qqDfYLFVmQo9vR54TZ4vznr9lunjJ/1NerbhYUsoWdzULd4xkTJnmJe0
    W9HxlXn5oOdSpnUCAwEAAaMuMCwwHAYDVR0RBBUwE4ERZHNhbmNoZXpAZTIwMDAuZXMwDAYD
    VR0TAQH/BAIwADANBgkqhkiG9w0BAQUFAAOBgQCeO2Yj6VRnski7dUJOH3n5I+ASe0zSUl31
    RRmjgE39a0sUbC6o5PuIj05cb1klUnuiyIyzVF4FfF8prSORpBVjsMIy7vift/xwB6GBZLWz
    JUc+JV5vvgMY2+SC+m+bWLJ575AOvpm8fjMQxdvMfMicElru94/k59b7Fm2Q5dMwqj==


EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20070924T113755Z
END:VCARD

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to