title: multiple site on localhost served by nginx without domain name
body: <p>I'm on ubuntu 20.04 rpi4 and I like to write some www site for testing.</p>
  <p>Is quite simple configure nginx using some server blocks and server_name inside the server blocs to point to some virtual domain not existing and then set this domain to point to localhost in <code>/etc/hosts</code>:</p>
  <pre class="lang-sh prettyprint-override"><code># /etc/hosts
  127.0.0.1 adminer
  127.0.0.1 pippo
  127.0.0.1 pluto
  </code></pre>
  <p>to have some site like this:<br />
  http://adminer<br />
  http://pippo<br />
  http://pluto</p>
  <p>But I like to avoid <code>/etc/hosts</code> setting.<br />
  what I like is:<br />
  http://localhost/adminer<br />
  http://localhost/pippo<br />
  http://localhost/pluto<br />
  ...<br />
  to point to 3 different site adminer, pippo and pluto.</p>
  <p>It is possible?<br />
  what configuration have to use?</p>
  <p>can I use one server block for one site or have I to use one server block to all 3 sites?<br />
  I'm new on nginx ...</p>
  <p>best regards,<br />
  Leonardo</p>