简体   繁体   中英

Running rails with webrick in debian vm need domain

I'm running a debian vm and inside there, there runs my rails application on a webrick server.

the default domain is lvh.me .. it comes out of the box from webrick I thought. Is there I possibility to change the lvh.me? so that I can run two virtual machines on my desktop? and can acces one with lvh.me and the second one with blubb.me or something like that?

You can add any number of domain names and force them to resolve to specific IP's in your \\etc\\hosts file.

Add something like this to your \\etc\\hosts file:

127.0.0.1 lvh.me
127.0.0.1 blubb.me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM