On Jan 26, 2008 4:08 PM, walterbyrd <[EMAIL PROTECTED]> wrote:
> On Jan 26, 1:21 pm, Cliff Wells <[EMAIL PROTECTED]> wrote:
> > On Sat, 2008-01-26 at 05:16 -0800,walterbyrdwrote:
>
> > If you are already running Lighty, why not just have it proxy to the
> > Pylons app? Avoiding this is just making your life more difficult.
>
> I don't know how. I am brand new to pylons, and fairly new to lighty.
> I am trying to follow the install instructions as closely as I can.
>
> I don't think the ports are blocked. The installation seemed to go
> smoothly, up to this point. But, it appears that I have missed
> something major. The directories seem to set up correctly. Python
> seems to work. I am able to connect to my website. I think I only have
> one development.ini file. Editing the development.ini seems straight-
> forward: hosts = 0.0.0.0. port = 5000.
I don't know lighty but here's the Apache syntax.
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
The first line forwards public requests to your Pylons application running
on port 8080. (You can choose any port above 1024 that's not already in use.)
Apache is presumably running on port 80, but that doesn't matter. The second
line adjusts the HTTP headers in the response so that absolute URLs point to
the Apache port rather than the application port.
In production.ini (development.ini for now):
host = 12 7.0.0.1
port = 8080
This makes the Paste HTTP server (Pylons application) accept requests from
the localhost but not from the public. This is a security feature in some apps,
especially if Apache is doing SSL or authorization: accessing the Pylons app
directly would bypass these security measures.
Just translate the syntax to lighthttpd and it should work.
The only time you'd put 0.0.0.0 or your public IP in production.ini is
if you're not
running Apache/lighthttpd and you want
the public to access the Paste HTTP server directly. In that case it
must run on
port 80 or users will have to put the :port_number in their URL. And
the program
would have to run as root to open port 80.
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---