Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can do this a few different ways. One way is to write it directly into your web application by checking what domain the request was made to and then route within your application but unless your application is very basic this can make it fairly bloated and can get messy. A good time to do something like this might be if you're writing a blogging platform where everything is pretty much the same across all your domains. The key difference might be how you query your data to display the right data.</p> <p>In this case you'd probably use the request to see which blog is being accessed.</p> <p>If you want to just host a few different domains on the same server all using port 80 (like most websites do) you will want to proxy each request off to a different process. You can do this with nginx or even with node itself. It all comes down to what best fits your needs. <a href="https://github.com/substack/bouncy/" rel="nofollow">bouncy</a> is a quick way to get setup doing this as its a nodejs module and has some pretty impressive benchmarks. nginx (<a href="http://blog.noort.be/2011/03/07/node-js-on-nginx.html" rel="nofollow">proxy with nginx</a>) is probably the most wildly used method though, as a lot of nodejs servers use nginx to serve static content anyways.</p> <p><a href="http://blog.noort.be/2011/03/07/node-js-on-nginx.html" rel="nofollow">http://blog.noort.be/2011/03/07/node-js-on-nginx.html</a> <a href="https://github.com/substack/bouncy/" rel="nofollow">https://github.com/substack/bouncy/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload