I try to serve an index page with nginx, using it's proxy_cache functionality. Everything works fine regards ordinary browsing with broswers. But when I try to get page's content with curl or when I use siege on the index page, nginx begins to work not as I have expected.
Looking to implement an office network with peak # users of 40-50 people and clients and I'm thinking that nginx could be used as a transparent proxy to cache requests to any HTTP-based site at the edge of the network. Is this possible? And if so, how?
I have tried googling and searching but it seems that all resources seem to point at hosting your own servers and caching requests to those.
I have a couple caching proxy servers in front of my web server.
I have added a X-Accel-Expires header on my static contents as well as a Last-Modified header.
I would like to know whats the correct setting to cache those elements without caching anything else.
This is what I have at the moment but it doesn't cache anything :
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
client_max_body_size 2000m;
k
I am using nginx+ php5-fpm to render pages of a busy Drupal 6 community site.
I'm looking for a solution to cache 404s in long term (a few days/weeks) on the webserver. My current setup is NGINX with memcached_pass proxy and PHP-FPM to deliver uncached pages (PHP also writes the contents to memcached).
The crawlers all around the web seem to like my pages and generate a few thousand 404 requests a day.
I'm using php-fpm with nginx as http server (I don't know much about reverse proxies, I just installed it and didn't touch anything), without Apache nor Varnish.
I need nginx to understand and honor the http headers I send.
I have to configure a Nginx server wich will be used as http(s) proxy and caching like a Apache server with proxy_pass and proxy_pass_reverse directives.
The system will be like this :
The nginx server respond to mydomain.com requests.
If I type mydomain.com/redmine, the nginx server have to proxy_pass on the internal adress (exemple : 192.168.0.207).
It's the same thing for other services (like
I am extremely new to this so please don't shoot me down:
I have set up a Linode running Ubuntu, It is all sort of working except Nginx.
I am following this guide:
http://rubysource.com/deploying-a-rails-application/
And this for nginx:
http://library.linode.com/web-servers/nginx/installation/ubuntu-10.04-lucid
When I go to my IP, I get a 500 internal server error.
I have tried starting nginx