Skip to content

Instantly share code, notes, and snippets.

@alyssais
Last active April 6, 2022 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alyssais/f5a9d3e54c47ad1affb6d3f848287afa to your computer and use it in GitHub Desktop.
Save alyssais/f5a9d3e54c47ad1affb6d3f848287afa to your computer and use it in GitHub Desktop.
Use .localhost domains for Rails apps
address=/.localhost/127.0.0.1
address=/.test/127.0.0.1
address=/.lvh.me/127.0.0.1
server {
listen localhost:80;
location / {
proxy_set_header Host $http_host;
proxy_pass http://localhost:3000;
}
}
nameserver 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment