Dns multiple sites and ispconfig

Posted March 7, 2014 7.1k 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 , 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: 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/ hostname ---- myuser@crescernavida:/var/www/ hostname -f thank you in advance for you time

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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;



error_page 404 errors/404.html;
access_log logs/;

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: