Quick instructions on using ngnix as apache frontend?
I'm running a vBulletin website on Ubuntu 10.04. I've previously tweaked my mpm-worker settings, but things are getting slow again.
I've collected about four months worth of stats with awstats, and 70% of my requests are just for static content, so it seems like this would be a great solution.
However, I've been unable to dig up a quick document on how to get this to work. Any pointers?
1 Reply
Otherwise it's the same as that doc except when you get to the bit about fcgi you'll need to use proxy* options instead of fastcgi*
Simple config would be
location ~ .php$
{
proxy_pass
proxysetheader Host $http_host;
proxysetheader X-Real-IP $remote_addr;
proxysetheader X-Forwarded-For $proxyaddxforwardedfor;
}
That assumes that you set apache to listen on port 81.