Getting started

Francis Daly francis at daoine.org
Thu Dec 12 16:24:35 UTC 2019


On Wed, Dec 11, 2019 at 08:54:24PM +0000, James Read wrote:

Hi there,

> Access log shows that page hasn't changed http code 304:
> 
> 127.0.0.1 - - [11/Dec/2019:20:46:42 +0000] "GET / HTTP/1.1" 304 0 "-"
> "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/79.0.3945.79 Safari/537.36"

That indicates that this browser sent a request of something like "please
send me /, if it is newer than (some time in the past)", and nginx said
"/ is not newer than then".

It does not say anything about whether the "time in the past" corresponded
to /usr/local/nginx/html/index.html, and whether "not newer" corresponds
to /www/index.html. Maybe neither apply; maybe both do.


If you do

  curl -i http://127.0.0.1/

what content do you get back? Is it from the file that you want it to be?

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list