NGINX - mhulse/mhulse.github.io GitHub Wiki

View logs:
$ cd /your/log/location

... tail the error log:

tail -f foo.error.log
tail foo.error.log

... or tail the access logs:

tail -f foo.access.log
tail foo.access.log

You sometimes might want to instead use explicit paths:

tail -f /your/log/location/foo.access.log

etc.

They'll stay in your history for next time, and it lets you cd navigate anywhere you wish in that terminal session and simply up-arrow to tail again.


Restart:

Nginx:

sudo service nginx restart

Varnish:

sudo service varnish restart

If ya got Varnish running, you'll probably want to restart both if you're gonna restart one.