meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
digital:server:nginx [2018/10/23 13:16]
natrius created
digital:server:nginx [2018/10/24 23:47]
natrius [other]
Line 106: Line 106:
  
 Once DNS propagates, the sites will work as they should. Once DNS propagates, the sites will work as they should.
 +
 +## other example
 +  * https://stackoverflow.com/questions/11773544/nginx-different-domains-on-same-ip
 +
 +<code>
 +server {
 +    listen      80;
 +    server_name www.domain1.com;
 +    root /var/www/domain1;
 +}
 +
 +server {
 +    listen       80;
 +    server_name www.domain2.com;
 +    root /var/www/domain2;
 +}
 +</code>