How can I allow access to a single IP address via Nginx.conf?

前端 未结 2 551
春和景丽
春和景丽 2020-12-07 16:18

Nginx, Passenger, and Rails are running beautifully on my Linode. Before I launch, I\'d like to restrict access so only my IP can view the site.

I\'ve tried to deny

2条回答
  •  抹茶落季
    2020-12-07 17:11

    I know this is an old tread, but you an always use sudo nginx -t to get a more specific error message.

提交回复
热议问题