Skip to content

Instantly share code, notes, and snippets.

@reepush
Last active February 12, 2018 10:24
Show Gist options
  • Save reepush/e779ca744dd21ecd0f20ea8c36417b8a to your computer and use it in GitHub Desktop.
Save reepush/e779ca744dd21ecd0f20ea8c36417b8a to your computer and use it in GitHub Desktop.
local host to port mapping
brew install nginx
/etc/hosts

127.0.0.1 admin.local
/usr/local/etc/nginx/servers/admin.local

server {
  server_name admin.local;
  location / {
    proxy_pass http://127.0.0.1:8080;
  }
}
nginx
nginx -s stop && nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment