wavydavy schrieb:
> On Oct 29, 5:33 am, iain duncan <[EMAIL PROTECTED]> wrote:
>> Seems there are a number of options out there, and that old docs are not
>> so reliable in this department. I have a vps with not much ram, and
>> sites that never see much traffic. ( Small local businesses ). Wondering
>> what folks have found to be the best alternative to
>> apache-mod_proxy-cherrpy to save ram.
>
> nginx via fastcgi gets my vote. I run it on a 64mb xen virtual server,
> no problems. Rarely above 2mb RSS, but I'm not under much load
> generally. But other reports great performance under much higher
> loads.
>
> http://wiki.codemongers.com/Main
Yes, nginx rocks and is also very easy to configure to work as a reverse
proxy in front of TurboGears/CherryPy:
Here's an example of the relevant configuration for one of my TG apps:
server {
# listen on 192.168.0.2 Port 80
# (This host is behind a port-redirecting router)
listen 192.168.0.2:80;
server_name myserver.foo.com myserver;
# serve static files directly with nginx
location ~ ^/static {
root /home/myserver/data;
}
location = /favicon.ico {
root /home/myserver/data/static/images;
}
# Proxy everything else to TurboGears app runing on port 8081
location / {
proxy_pass http://localhost:8081/;
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;
}
}
Here's the output from ps auxww | grep nginx afetr an uptime of 25 days:
root 4381 0.0 0.1 4376 672 ? Ss Oct03 0:00 nginx:
master process /usr/sbin/nginx
www-data 4382 0.0 0.3 4548 1364 ? S Oct03 0:50 nginx:
worker process
HTH, 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
-~----------~----~----~----~------~----~------~--~---