Welcome! Log In Create A New Profile

Advanced

Reverse cache not working on start pages

October 04, 2017 04:32AM
Hi!

I am unable to get reverse cache working on startpages. I am using Ubuntu 16.04 with everything updated. I have tried this example:
https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachingexample/

http {
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m
inactive=24h max_size=1g;
server {
location / {
proxy_pass http://1.2.3.4;
proxy_set_header Host $host;
# proxy_cache STATIC;
proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating
http_500 http_502 http_503 http_504;
}
}
}

It works fine with the row "proxy_cache STATIC" disabled, but when I enable it, I can not get any startpages woking. If I use http://asiteonmyiisserver.com, it will only show the default IIS page, but if I type: http://asiteonmyiisserver.com/idex.html it will work. What also works is http://asiteonmyiisserver.com/products, and so on. I also have one other server that only hosts one site (apache server) with no host headers involved, and that one works even with the startpage.

I am totally lost when it comes Nginx, so this could be something really simple. I have searched a lot on the Internet and only found one guy with the same problem. The server pointed to by proxy_pass is an IIS-server hosting mostly wordpress domains on a single IP using host headers.
Subject Author Posted

Reverse cache not working on start pages

Dingo October 04, 2017 04:32AM

Re: Reverse cache not working on start pages

Dingo October 04, 2017 05:42AM

Re: Reverse cache not working on start pages

Dingo October 04, 2017 06:01AM

Re: Reverse cache not working on start pages

Maxim Dounin October 04, 2017 11:40AM

Re: Reverse cache not working on start pages

pbooth October 04, 2017 11:58AM

Re: Reverse cache not working on start pages

Dingo October 12, 2017 04:45AM

Re: Reverse cache not working on start pages

Dingo October 12, 2017 04:44AM

Re: Reverse cache not working on start pages (solution founD)

Dingo October 12, 2017 04:52AM

Re: Reverse cache not working on start pages (solution founD)

pbooth October 12, 2017 05:34AM

Re: Reverse cache not working on start pages (solution founD)

Dingo October 12, 2017 07:26AM

Re: Reverse cache not working on start pages (solution founD)

Lucas Rolff October 12, 2017 07:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
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