Save Screenshots Space on Mac

If you use mac OS and if you think you might run out of disk space at some point in the future (everybody does this), then here is a small (advanced) tip to help to optimise the space, especially if you take a lot of screenshots. I was going through the random video on youtube and … Continue reading Save Screenshots Space on Mac

Advertisements

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

Correct Nginx try_files syntax with query params

With WordPress sites and Nginx servers, you may have used one of the following try_files directives... try_files $uri $uri/ /index.php; try_files $uri $uri/ /index.php?$args; Both are incomplete. With the first method, arguments are not passed. With the second method, question mark is present, even when there are no query parameters. A complete solution is to … Continue reading Correct Nginx try_files syntax with query params