-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize serving balloon-mapping and /home pages for high traffic #147
Comments
Also remove www.pub... and http://publiclab redundancy (see howtoforge article above, p2) |
That install doesn't look too hairy. I'm interested to see how it goes. RJ Steinert On Wed, Apr 18, 2012 at 4:56 PM, Jeffrey Warren <
|
yep; i'm in the public chat room if you're around: publiclaboratory.org/chat On Wed, Apr 18, 2012 at 5:11 PM, R.J. Steinert <
|
ok, i'm currently blocking hotlinked files from off domain, 'cause that's in the example nginx config. Reminder to self to re-enable that. |
ok running nginx at publiclaboratory.org:8088 but got:
maybe i have localhost access off for apache? working... |
i got nginx working and redirecting, but when i try to swap it so nginx is handling port 80 and apache on port 8088, it says port already in use... i think this means i'd have to swap over ALL apache sites to 8088, individually in the /etc/apache2/sites-available/* directory to all say 8088, and nginx would sit in front of them. or I could try to make the /etc/apache2/sites-available/default file deal with everything except publiclaboratory.org:80 either way it'll take a little work to get going and I'm not really wanting to try it on the production server. Load times have dropped again as traffic has gone down so I want to test this out on a smaller service like SpectralWorkbench.org before really trying it on publiclaboratory.org. |
alternative: proxy everything through NGINX and run apache on port 8088 this means figuring out how to proxy each site to its respective hostname in /etc/nginx/sites-available/*? multiple server entries seems dumb, can we wildcard? (http://www.besttechie.net/wp-content/uploads/nginx-example.conf) |
also someone says (http://wp-performance.com/2010/10/nginx-reverse-proxy-cache-wordpress-apache/):
or wildcard: http://nginx.org/en/docs/http/server_names.html
|
Interesting stuff.
I wonder if this would end up being difficult having to tune
Would have to be expanded. I wonder what else... RJ Steinert On Thu, Apr 19, 2012 at 9:23 AM, Jeffrey Warren <
|
i'm trying it now; still can't seem to allow connections to Apache via 127.0.0.1 or localhost... curl blablabla 127.0.0.1:80 fails also:
when trying to get to spectralworkbench.org:8088 |
almost there, getting to apache but need to get the virtual host config to actually direct it to the right web app. This has a lot of helpful stuff: http://www.dikant.de/2008/07/10/nginx-as-a-reverse-proxy-for-apache/ |
finally, reverse proxying directly to rails apps: http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/ |
close to ready to go, but I want to do it from a hardline (i'm on a train) like in the Matrix. The nginx default entries look like this:
I'd like to benchmark before and after, but that might be hard on a production machine. If we don't have more crazy server issues (we're on slashdot front page now and doing OK, i guess!) I can let the current system run for a couple days to let it even out, then do this swich. I'd hope to see a distinct drop in response time. In very rough tests, I've seen Nginx serve an HTML page between 60-100% faster than Apache. Nice. |
Currently researching how to use NGINX: http://www.howtoforge.com/how-to-speed-up-drupal-7.7-with-boost-and-nginx-debian-squeeze-p3
To get actual IP addresses instead of the reverse proxy, we'll need to install rpaf: http://olex.openlogic.com/wazi/2011/add-a-nginx-reverse-proxy-to-your-lamp-setup/
The text was updated successfully, but these errors were encountered: