fullstackpython/book-and-video-code-examples

nginx won't start

Closed this issue · 1 comments

When I restart or run sudo nginx -t I get the error:

nginx: [emerg] unknown directive "if(!-f" in /etc/nginx/conf.d/flaskdeploy.conf:47

The line that is having issues is:

if (!-f $request-filename) {

Is there a typo in this line? I am checking other sources but so far I have not been able to figure out what is needed here.

i copied the file from the book and it worked. The issue must be a typo somewhere before this statement.