Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Status: HTTP/1.1 200 OK Server: nginx/1.4.1 Date: Wed, 06 Nov 2013 02:55:23 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding X-Powered-By: PHP/5.3.10-1ubuntu3.8 X-Pingback: http://mydomain/xmlrpc.php Link: http://mydomain/?p=2138; rel=shortlink rt-Fastcgi-Cache: HIT
Does previous lines mean the cache works? Why “Connection: close” always close?
Thanks!
@handytutorial: Yes – <code>rt-Fastcgi-Cache: HIT</code> means that it was served from the cache.
this tutorial is very hard to follow and understand. My nginx couldn’t start at all.
@PigGy: Can you check the file at /var/log/nginx/error.log for any error and post them here.
@handytutorial: The Connection: close indicates the end of the HTTP connection.
From www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.10
HTTP/1.1 defines the “close” connection option for the sender to signal that the connection will be closed after completion of the response
@jesin.a: I destroyed the 2 droplets and recreated a fresh droplet to follow your tutorial again. this time i skipped the section /* droplet’s RAM + Swap */ because I not familiar with the settings and I want to save time to recreate a fresh droplet so to show you my error.log and other information as below.
/var/log/nginx/error.log: http://pastebin.com/nUXZxiKN
/var/www/site1/wordpress/purge.php: http://pastebin.com/EMxAWbP1
/etc/nginx/sites-available/wordpress: http://pastebin.com/rF885i2Y
Putty: curl -d ‘url=http://www.example.com/time.php’ http://localhost/purge.php http://pastebin.com/QMcV2xyx
@PigGy: Are you still experiencing this issue? It’s a bit odd, since $request_uri is valid and you’re not running a ridiculously old version of nginx so it should exist.
@Kamal Nasser I still facing the problem. I wouldn’t dare run Sudo Reboot because if I reboot my nginx webserver couldn’t start-up at all.
@PigGy: Does it work if you just browse to / and not /purge.php? Try creating a file with <pre><?php phpinfo();</pre> as its contents – does it work?