Report this

What is the reason for this report?

Dns multiple sites and ispconfig

Posted on March 7, 2014

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



This textbox defaults to using Markdown to format your answer.

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

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.

first of all, your DNS is not really configured the right way… <br> <br>Look here: <br>http://s45.photobucket.com/user/hxt57/media/downsvn-dns_zps0f4f8fd0.jpg.html <br> <br>each domain is going to have the same setting, but different domain name so there is no issue, no worries. <br> <br>P.S, you don’t need the mail record as shown in the url provided though… <br> <br>now you can create each domain a vhost like this with different root path: <br> <br>server { <br> listen 80; <br> <br> server_name yourdomain.com; <br> <br> root /PATH/TO/WEBROOT; <br> <br> error_page 404 errors/404.html; <br> access_log logs/star.yourdomain.com.access.log; <br> <br> index index.php index.html index.htm; <br> <br> location ~* .(jpg|jpeg|gif|css|png|js|ico|html)$ { <br> access_log off; <br> expires max; <br> } <br> <br> location ~ /.ht { <br> deny all; <br> } <br>} <br> <br>check it out here: http://wiki.nginx.org/ServerBlockExample <br> <br>http://www.howtoforge.com/perfect-server-ubuntu-12.04-lts-nginx-bind-dovecot-ispconfig-3-p4

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.