Am Montag, 29. Mai 2017 01:25:13 UTC+2 schrieb iaw4: > so here is one solution, although this one does not work in chrome: Add > 'localhost.test' and 'auth.localhost.test' at the end of 127.0.0.1 > localhost in /etc/hosts and `# morbo -v appname -l > http//localhost.test:3000`. now, http://localhost.test:3000/ works just > fine with safari, firefox, and the Mojolicious test agent (but not chrome). >
Using dnsmasq is often an elegant solution for use-cases like this. Make sure that the DNS server provided by dnsmasq on localhost is the primary DNS server on your computer (e.g., by editing /etc/resolv.conf and prepending "nameserver 127.0.0.1"). Then, add an entry like "address=/sylspace.dev/127.0.0.1" to " /etc/dnsmasq.conf" and every host / subdomain in that domain is automatically resolved to localhost. heiko -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
