Browser caching Nginx

I have problem when set Browser caching on Nginx. I have pasted your code into nginx.conf located at /etc/nginx/nginx.conf , above to the http, then reload NGINX. But nginx can't restart. This is the message:
Starting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
Can your give me some guides, thanks