Cannot setup multiple domains


I am trying to setup multiple domains for my website on local machine. Following is the server block.

server {

access_log /var/log/nginx/ rt_cache;
error_log /var/log/nginx/;

root /var/www/;

index index.php index.html index.htm;

include common/php.conf;

include common/wpcommon.conf;
include common/locations.conf;
include /var/www/*.conf;


I added additional domains to server_name and I restarted ee stack.

When I run


It does not show local IP address, even when I open in browser, it gets redirected to some other site.

Can anyone please guide me what should be the issue? I am using latest version of easyengine.



You need to point dns entry in your /etc/hosts file like this

1 Like

a quick question about this should we be using or the ip of our server?

In /etc/hosts you use

In DNS you use your public IP.

1 Like

hey there @janiosarmento is this a MUST?

i mean, do we HAVE to add te entry into the hosts file?

In an ideal world you’d never touch /etc/hosts. But sometimes we need use it, specially during slow DNS propagation cases.

ahhhh so the purpose of editing the hosts file is to stop the system looking externally and connecting to localhost…