[EMAIL PROTECTED] schrieb:
> I'm setting up a project on a real server and gettin an Error 500 with this
> error message:
> 
>  File "/var/www/Credit/credit/templates/products.py", line 37, in _pull
> TypeError: generate_content() takes exactly 1 argument (2 given)

Sorry, I can't help you much with this, but it seems like there are somehow
arguments added to your URL when using mod_proxy. Try changing the signature of
'generate_content' to accept variable arguments and add a logging statement to
see what you get.

But Apache+mod_proxy is a PITA anyway IMHO. I use nginx as a reverse proxy and,
so far, it works flawlessly and is very easy to setup.

Here's an example virtual host declaration in nginx.conf:

    server {
        listen      1.2.3.4:80;
        server_name yourservername.com;

        # proxy to CherryPy server on localhost port 8080
        location / {
            proxy_pass              http://localhost:8080/;
            proxy_redirect          off;
            proxy_set_header        Host $host;
            proxy_set_header        X-Real-IP $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }


Chris

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to