Skip to content
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

srcache with redis in nginx loadbalancer #63

Open
dipenpatel235 opened this issue Dec 12, 2016 · 3 comments
Open

srcache with redis in nginx loadbalancer #63

dipenpatel235 opened this issue Dec 12, 2016 · 3 comments

Comments

@dipenpatel235
Copy link

how to used srcache redis in loadbalancer ?

can u please provide some example ?

Thanks

@agentzh
Copy link
Member

agentzh commented Dec 12, 2016

@dipenpatel235 I cannot really parse your question. It's just too vague.

@dipenpatel235
Copy link
Author

ok..let me explain with my real example

see my current working below two configuration file without redis and srcahce.

hosted_site_nginx_without_redis.txt
loadbalancer_without_redis.txt

Now i have setup srcache and redis in loadbalancer as per below loadbalancer nginx config file and hosted nginx is same as above without redis.

loadbalancer_with_redis.txt

But using that i get error 404 for all .js and .css .png files
So i have confusion how to use sr cache with redis in load balancer ?

Let me know if you have still confusion..

Thanks...

@agentzh
Copy link
Member

agentzh commented Dec 13, 2016

@dipenpatel235 This module works out of the box with your locations configured with fastcgi_pass and etc. This module also works with redis. See the official docs:

https://github.com/openresty/srcache-nginx-module#caching-with-redis

It seems that everything is already documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants