Maxim Dounin Wrote: ------------------------------------------------------- > Nice catch. It's not a bug in nginx though, as HTTP only allows > fixed-width subset of RFC1123, see here: > > http://tools.ietf.org/html/rfc2616#section-3.3.1 > Thanks Maxim! Easy fix. Bug and patch submitted to Mono to fix the date format used in the headers: https://bugzilla.xamarin.com/shoby Daniel15 - Nginx Mailing List - English
Maxim Dounin Wrote: ------------------------------------------------------- > In ths particular case I would suggest there is another caching > layer, which results in cached "X-Cache: MISS" being returned. > Note that Expires and Last-Modified are the same, and > X-ExecutionTime headers match exactly: Yeah, for that particular page there's another caching layer iby Daniel15 - Nginx Mailing List - English
Figured it out. The Expires header ("Sun, 3 Mar 2013 13:28:24 GMT") is using a single digit for the date. If I change the "3" to "03", Nginx works as expected. RFC 1123 and RFC 822 say that both one- and two-digit numbers are valid, so this is a bug in Nginx's caching. I'll report it to the bug tracker.by Daniel15 - Nginx Mailing List - English
Nginx's FastCGI caching used to work perfectly for me, but recently it stopped working and I can't work out why. This is how the headers look: HTTP/1.1 200 OK Server: nginx/1.2.7 Date: Sun, 03 Mar 2013 12:28:24 GMT Content-Type: text/html; charset=utf-8 Content-Length: 10727 Connection: keep-alive X-AspNetMvc-Version: 4.0 X-AspNet-Version: 4.0.30319 Expires: Sun, 3 Mar 2013 13:28:24 Gby Daniel15 - Nginx Mailing List - English
Francis Daly Wrote: ------------------------------------------------------- > $ curl -i -I http://dan.cx/ > HTTP/1.1 200 OK > .... > Cache-Control: private > .... > > I don't see anything in your config which adds that header, so > presumably it is coming from upstream. Thanks, Mono / ASP.NET must be adding that by default (as I have not explicitly added any caby Daniel15 - Nginx Mailing List - English
I'm trying to use Nginx FastCGI caching to cache my site's home page and blog home page. However, caching doesn't seem to be working on these pages, and $upstream_cache_status always seems to be "MISS". Site URL: http://dan.cx/ Relevant bits of the config (and the full Nginx server{} config is available at https://github.com/Daniel15/Website/blob/master/nginx.conf): ______________by Daniel15 - Nginx Mailing List - English
It's probably browser caching - Did you try pressing Ctrl+F5 or clearing your browser's cache?by Daniel15 - Nginx Mailing List - English
Thanks for your reply. Adding the try_files setting into the PHP location block made it behave as expected Thanks! :) Francis Daly Wrote: ------------------------------------------------------- > On Thu, Jun 14, 2012 at 11:24:12PM -0400, Daniel15 > wrote: > > Hi there, > > > location / { > > > location /assets/cache/ { > > > location ~by Daniel15 - Nginx Mailing List - English
Hi everyone, I'm investigating moving one of my sites from another web server to Nginx. The app is a PHP app that uses the "front controller" pattern (everything routes via index.php), and the app takes care of URL routing and handling 404 errors. My nginx site configuration looks something like this: ===== server { listen 8080; server_name example.com; root /var/www/exampleby Daniel15 - Nginx Mailing List - English
You should be able to just create a new project and add all the source files from the Windows version of nginx (http://nginx.org/en/docs/windows.html) - Although I'm not too sure if it can actually be compiled with the Microsoft compiler or whether it depends on MinGW. The Windows port of nginx looks very incomplete.by Daniel15 - Nginx Mailing List - English
I've got two sites, example.com and beta.example.com. The configuration for these two sites is almost identical, except for the root directory (/var/www/sitename/live/public/ for the first domain, and /var/www/sitename/beta/public/ for the second domain) and a few environment variables (database name, etc.) used by the code. What's the best way to share as much of the Nginx configuration as possibby Daniel15 - Nginx Mailing List - English