Skip to content

Instantly share code, notes, and snippets.

@freiden
Forked from alyssais/dnsmasq.conf
Created April 6, 2022 11:33
Show Gist options
  • Save freiden/e752b6251e9aae7dc06b386aa8389f23 to your computer and use it in GitHub Desktop.
Save freiden/e752b6251e9aae7dc06b386aa8389f23 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