Just came back to this as I have hit this wall and it would be very useful if the roxy no cache and proxy bypass could be triggered based on the absence of a cookie. I need to pass first time visitors to the backend and I need to make sure the content they get is not cached. As they are first time visitors, I can't rely on the presence of a cookie to tell this and the only way I can think off iby Dayo - Nginx Mailing List - English
Hello! The clue is in the name of the parameters. they are 'proxy_CACHE_bypass' and 'proxy_no_CACHE'. I.E. They have to do with the nginx CACHE not bypassing nginx. In your question, you have a client connected to an Nginx Proxy. There is no connection between them and the back end. Therefore, the back end cannot serve them anything directly. If you want to serve directly from the back enby Dayo - Nginx Mailing List - English
RTFM! proxy_set_header If-Modified-Since $http_if_modified_since;by Dayo - Nginx Mailing List - English
ehudros2 Wrote: ------------------------------------------------------- > (seems like it only supports > bypassing/no caching if a cookie exists, but not > if it doesn't). From what I can understand of the docs, it seems it does indeed only act on the presence of a cookie.by Dayo - Nginx Mailing List - English
Happy New Year all! It seems the 'If-Modified-Since' header does not get passed to the back end even when 'proxy_pass_request_headers' is left which should be a default 'on'. Is there a way to ensure that the 'If-Modified-Since' header is passed? I have looked at 'proxy_pass_header If-Modified-Since' but I suppose that directive along with 'proxy_hide_header' only manages how Nginx dealsby Dayo - Nginx Mailing List - English
Hopefully, the authors will stick to their decision NEVER to implement this.by Dayo - Ideas and Feature Requests
Try putting it into the php location instead.by Dayo - Nginx Mailing List - English
I moved my installation from the old stable 0.7.x branch to the new stable 0.8.x and cannot proceed as I get an error message saying proxy_cache_bypass must be used along with proxy_no_cache since v0.8.46. However, it seems proxy_cache_bypass is not documented anywhere (can't find it on the wiki anyway apart from one statement in the 0.8.46 changelog listing it as a new feature). Can anyone kinby Dayo - Nginx Mailing List - English
Hi! Maxim Dounin Wrote: ------------------------------------------------------- > Basically this is how it used to work since > introduction of cache > in 0.7.*, at least in all 0.7.* stable releases > (cache was > introduced in 0.7.48, 0.7.* branch was marked > stable at 0.7.59). I had changed from proxying php to apache and I didn't add "fastcgi_pass_header&quby Dayo - Nginx Mailing List - English
Maxim Dounin Wrote: ------------------------------------------------------- > In 0.7.67 nginx strips Set-Cookie headers by > default on all > responses served with proxy_cache switched on. ARRGHHH!!!! This is not documented in the changelog and I was going crazy on why my apps which had been working perfectly fine suddenly stopped working on upgrading to 0.7.67. > You may changby Dayo - Nginx Mailing List - English
Hi It is a rather annoying feature to be honest. So annoying I took to seaching the software website as I was sure I couldn't be the only one irritated by it and came up with this: http://www.phorum.org/phorum5/read.php?62,133957. Firstly, it seems to be a module that has to be actively installed. This is fair enough and I guess there may be some that like it. Importantly though. it seems thby Dayo - Site Suggestions
Please provide an option to switch off the preview text that comes on when the mouse is hovering above a post link. It is driving me round the bend.by Dayo - Site Suggestions
Nice to see all the proposed modifications but I pray though that someone is keeping an eye on the big picture and not ending us up with an overly complicated, and thus, inaccessible and difficult to use item.by Dayo - Php-fpm Mailing List - English
This is like the Holy Grail. See my similar request here http://forum.nginx.org/read.php?2,117833. However, the answer I got was on the cryptic side with the only thing I could make out being it is not a good idea with proxy which I use as at yet so I gave up.by Dayo - Nginx Mailing List - English
Ha. I thought you had Igor's arrangement plus a static location to start with which is why I said leave as is but reading again, I see you were passing "/" to apache. Glad you are sorted.by Dayo - Nginx Mailing List - English
It is not going to make any difference whether nginx or apache serves the file. Just leave things are they are.by Dayo - Nginx Mailing List - English
Thanks for the response. This was experimental to see if this self updating setup can easily be done but don't want to go too bleeding edge so will leave it for now. Cheers Dayoby Dayo - Nginx Mailing List - English
My pseudo code should have been...: if request for specified files { if file in memcache { serve file from memcache } else if memcache error { proxy to apache } else { try to put into memcache try to serve from memcache if unable to serve from memcache { proxy to apache } } }by Dayo - Nginx Mailing List - English
Hi I am running Nginx 0.7.67 with the Memc and Echo 3rd party modules in trying to follow http://agentzh.org/misc/slides/nginx-conf-scripting/nginx-conf-scripting.html#35. I want to serve some static files from memcached and am trying a self updating setup as in the following pseudocode: if request for specified files { if in memcache { serve from memcache } else { try to put inby Dayo - Nginx Mailing List - English
Finally got it working. Changed my setup such that Apache only listened on internal IP 127.0.0.1 and moved the auth process to Nginx. I think (but didn't verify) the behaviour I saw may have been because my htpasswd file had been created using only the -c flag and not -c -d.by Dayo - Nginx Mailing List - English
You're right ... it wouldn't work. Perhaps write a script to recursively go through the directories and reset every .jpg file to lowercase and tell them to stick to lowercase. Not the perfect and fool proof transparent solution but perhaps they need to take some responsibility once you fix the initial issue. You'll be surprised how well people can adjust to such.by Dayo - How to...
Perhaps something like this might work location ~* ^/(.*)$ { ... config ... } location ~* ^/some-other-location/(.*)$ { ... config ... }by Dayo - How to...
Hi (just realised the other board does not post to the mailing list) Setting up a Centos 5.5 VPS to run Nginx as a caching reverse proxy to Apache and it is all peaches and cream apart from an issue with authenticating into phpMyAdmin. I have set up basic auth in Apache for requests to mysite/phpmyadmin as I don't want people bypassing auth by going directly to http:/ /mysite:apacheport/phpmby Dayo - Nginx Mailing List - English
Hi Setting up a Centos 5.5 VPS to run Nginx as a caching reverse proxy to Apache and it is all peaches and cream apart from an issue with authenticating into phpMyAdmin. I have set up basic auth in Apache for requests to mysite/phpmyadmin as I don't want people bypassing auth by going directly to http:/ /mysite:apacheport/phpmyadmin /phpMyAdmin is setup as an alias to the actual phpMyAdmiby Dayo - How to...