Dns multiple sites and ispconfig

March 7, 2014 6.2k views
Hi all I have set up my droplet, sucessfully instaled ispconfig3 with nginx. First, the domain I added was pointing to default nginx folder, instead of ipsconfig created one for the site. Now both domains point to same folder (that would be the one of the descomplicada.com.br , but the other one does not work. As i didn't know wich info would be helpfull to make you understand the mess i did, i made this album: http://imgur.com/a/rshuz there, you can check the ispconfig3 screens and also the dns in Digital Ocean's panel Btw, i followed some tutorial to set the server up, and i iwasn't really sure in what to put in 'hostname', as you ucan see in ptrrecotrds, but in ubutu config i got this: ----------------- myuser@crescernavida:/var/www/descomplicada.com.br# hostname crescernavida.com.br ---- myuser@crescernavida:/var/www/descomplicada.com.br# hostname -f crescernavida.com.br thank you in advance for you time
1 Answer
first of all, your DNS is not really configured the right way....

Look here:

each domain is going to have the same setting, but different domain name so there is no issue, no worries.

P.S, you don't need the mail record as shown in the url provided though...

now you can create each domain a vhost like this with different root path:

server {
listen 80;

server_name yourdomain.com;


error_page 404 errors/404.html;
access_log logs/star.yourdomain.com.access.log;

index index.php index.html index.htm;

location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
access_log off;
expires max;

location ~ /\.ht {
deny all;

check it out here: http://wiki.nginx.org/ServerBlockExample

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!