Multiple domain on 1 droplet

Anybody have multiple domains set up ?

Having trouble adding another domainto my vps. It’s Primary domain is and it is working perfectly, but aditional nothing, not even ‘not found’, just blank like it doesn’t exist at all. Even deleted primary domain and left only, but nothing still

Having nginx and virtual hosts set up.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

IS this really the Include entry in your nginx.conf? Nginx: #nginx.conf nclude /etc/nginx/sites-enabled/*;

I am thinking it is a typo…but the “i” is missing from include.

I’d suggest you create a nginx .conf file for each domain (assuming your config is in /etc/nginx/conf.d/) <br>Issue the command: nano /etc/nginx/conf.d/1st_domain.conf and put in it the following: <br>server { <br> listen 80; <br> server_name; # <-- replace 1st_domain with your domain. <br> root /var/www/1st_domain; <br> index index.html index.htm index.php; <br> client_max_body_size 1000M; <br> <br> location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ { <br> access_log off; <br> expires 30d; <br> } <br> <br> location ~ ^/(data|config|.ht|db_structure.xml|README) { <br> deny all; <br> } <br> <br> include php; <br> <br> location ~ /.ht { <br> deny all; <br> } <br>} <br> <br>and the same for each domain (note that all website files should be stored inside /var/www/) <br>and finally change ownership of the entire dir /var/www to your webserver (usually it’s www-data) <br>Restart nginx, and you’re done :)

Also I opened a ticket couple hours ago as I don’t know what to looka at anymore, I’ve beent trough every inch of configuration I have with not results at all.