Nice one @root3d ! I found this super useful for quick & dirty testing.
One minor thing to halve the config, add the www. & other server names to the same block, server_name on nginx docs.
www.
server { server_name local.example.com www.local.example.com lcl.exmpl.com; ... }
PS. add nginx after the 3 backticks for syntax highlighting in your code samples :)
nginx
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice one @root3d ! I found this super useful for quick & dirty testing.
One minor thing to halve the config, add the
www.
& other server names to the same block, server_name on nginx docs.PS. add
nginx
after the 3 backticks for syntax highlighting in your code samples :)