At 11:34 PM

Simulation of custom domains/subdomains on localhost

edit hosts:

sudo vim /etc/hosts

and add:

127.0.0.1       somesite.zz
127.0.0.1       robert.somesite.zz
127.0.0.1       lujo-lujo.zz
127.0.0.1       robert.lujo-lujo.zz

test it:

- start local dev server # in my case django app
- open browser: robert.somesite.zz
blog comments powered by Disqus