nginx: [emerg] unexpected end of file, expecting “;” or “}” in filename:linenumber

I created a new vhost for a domain to serve static files. Here's the config...   server { server_name static.example.com; root "/path/to/static.example.com/public; index index.html; access_log /var/log/nginx/static.example.com-access.log; error_log /var/log/nginx/static.example.com-error.log; location / { try_files $uri $uri/ /index.html; } } It can't get simpler than this. However, when I checked the configuration with `nginx -t`, it threw the … Continue reading nginx: [emerg] unexpected end of file, expecting “;” or “}” in filename:linenumber

Advertisements