Since enabling the fastcgi_cache on my nginx server, my php-enabled custom error page has suddenly stopped working and I'm getting the internal 404 message instead.
In nginx.conf:
fastcgi_cache_path /var/lib/nginx/fastcgicache levels=1:2
keys_zone=MYCACHE:5m inactive=2h max_size=1g loader_files=1000
loader_threshold=2000;
map $http_cookie $no_cache { default 0; ~SESS 1; }
fastcgi_cache_key "$sc
I have a website running Nginx and Apache, ...Apache deals with PHP files, and Nginx the html static files, we have now changed the site so there are no html static files, only PHP files and this has heavy load on the server, so I wanted to put the nginx as a reverse proxy cache, so that the php files coming from Apache will be cached and delivered static...
i see a lot of talks about using nginx + varnish and i do not get why? isn`t nginx enough?
nginx has SSI, Reverse proxy cache, lightweight, ssl, can work with cgi, fpm...
varnish has the same things, but no ssl, cgi support
thanks in advance
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.
I want to set up nginx as my web server. I want to have image files cached in the memory (RAM) rather then disk. I am serving a small page and want few images always served from RAM. I dont wish to use varnish (or any other such tools) for this as I believe nginx has a capability to cache contents into RAM. I am not sure as how may I configure nginx for this?
I am working on a system with nginx as a load balancer and multiple LAMP machines as backend. I am required to add some content from nginx in certain cases as decided by the backend machine.
Hi there,
I'm trying to get NGINX set up as a reverse proxy server for multiple SSL sites on one IP using SNI.
I'm having an hard time trying to find out how to reduce this "repeated lines" for my NGinx configuration, just to change one property :
server {
#listen [::]:443 ipv6only=on; ## listen for ipv6
listen 443;
server_name my.website.com;
access_log /var/log/nginx/my.website.com_access.log;
error_log /var/log/nginx/my.website.com_error.log;
s
I'm using http public cache all over an images website to allow clients and anyone between the clients and my server (eg: cloudflare, isp, etc) to cache HTML, assets (js/css/icons), and images (the main content of the website). But I don't want nginx to cache these images, because it will take too much space.