CherryPy/Turbogears on server not controlled by me
Jeff McNeil
jeff at jmcneil.net
Thu Feb 22 22:59:31 EST 2007
Can you use mod_rewrite and include a proxy back to a different port?
Assuming mod_proxy has been enabled, run your app server on port 8080
and then do something like this in a .htaccess file:
RewriteEngine on
RewriteRule ^/(.*)$ http://localhost:8080/$1 [P]
This of course assumes you want to proxy *all* traffic back. I
believe the [P] flag is fully supported in a per-directory
configuration context.
-Jeff
On Feb 22, 2007, at 9:55 PM, Brian Blais wrote:
> Jorge Vargas wrote:
>> On 2/20/07, Brian Blais <bblais at bryant.edu> wrote:
>>> I was wondering if there is a way to run CherryPy/Turbogears on a
>>> server that I don't
>>> have root access to.
>>
>> I have never run ANY webapp as root. you should follow that
>> advice. in
>> fact don't run any server as root.
>>
>
> Oh, I didn't mean to imply that! But, at the same time, I can't
> update the apache
> server to include python_mod, or apache forwarding to the cherry py
> server without
> root access. Is there a standard port to use, when you have to
> specify the port on
> the url?
>
>
> bb
>
>
> --
> -----------------
>
> bblais at bryant.edu
> http://web.bryant.edu/~bblais
>
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list