DEV Community

Discussion on: Localhost on the internet

Collapse
 
mikesheppard profile image
Mike • Edited

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.

server {
  server_name local.example.com www.local.example.com lcl.exmpl.com;
  ...
}

PS. add nginx after the 3 backticks Syntax Highlighting for syntax highlighting in your code samples :)