Welcome! Log In Create A New Profile

Advanced

AW: weird caching behaviour

Dipl.-Ing. Juergen Ladstaetter
February 21, 2012 10:00AM
That's it. Thanks very much


-----Ursprüngliche Nachricht-----
Von: nginx-bounces@nginx.org [mailto:nginx-bounces@nginx.org] Im Auftrag von
Maxim Dounin
Gesendet: Tuesday, February 21, 2012 9:38 AM
An: nginx@nginx.org
Betreff: Re: weird caching behaviour

Hello!

On Tue, Feb 21, 2012 at 09:27:51AM -0500, Dipl.-Ing. Juergen Ladstaetter
wrote:

> Hi guys,
>
> we're running a load balanced cluster with nginx as load balancing
> software and use the caching feature. So far we're caching for 3 high
> frequent sites and it's working great.
> Now when I add another site to be cached (configuration is below)
> nginx starts to cache EVERY website that it's loadbalancing. Can you
> find an error in the configuration or tell me why it's doing this? Thanks
in advance.
>
> Nginx.conf:

[...]

> # include all vhosts
> include sites-enabled/*;
> }
>
> Default vhost without caching that catches all non-specific requests:
> # standard load balancer
> server {
> listen SYSserver:80;
> server_name _;

This is *not* default vhost, as you don't have "default_server"
option in listen directive, and order isn't guaranteed due to "include
sites-enabled/*" used.

Using

listen SYSserver:80 default_server;

should fix your problem.

More details may be found here:

http://nginx.org/en/docs/http/server_names.html

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

weird caching behaviour

Dipl.-Ing. Juergen Ladstaetter February 21, 2012 09:30AM

Re: weird caching behaviour

Maxim Dounin February 21, 2012 09:38AM

AW: weird caching behaviour

Dipl.-Ing. Juergen Ladstaetter February 21, 2012 10:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 214
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready