Two domains into one ip, what can i do ?

Someone knows how to do to address two different domains to a single ip. I was trying on the panel, but I got confused a bit and I did not succeed, I only managed to access a single domain.

What I want is that “” and “” come to my same application.

Well I hope some clue. Thank you

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.

Accepted Answer



<<<<Domains and ip number replace them with “xxxx” and “999” for obvious reasons of privacy and security in this publication>>>

Hi, I really need help with this. I did according to the steps of the tutorial but with some changes, because my site is already working well on the web and I do not want it to fall.

I explain: I have a domain which is working super well, all this works for me in / home / max / myproject

/ etc / nginx / sites-available / myproject

Contains: Server {      Listen 80;      Server_name 99.999.999.99;      500M client_max_body_size;      Location = /favicon.ico {access_log off; Log_not_found off; }      Location / static / {          Root / home / max / myproject;      }

Location / {          Include proxy_params;          Proxy_pass http: // unix: /home/max/myproject/myproject.sock;      } }

And my other file

/ etc / nginx / sites-available / myproject2

server { listen 80; server_name 99.999.999.99; client_max_body_size 500M; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /home/max/myproject; }

location / {
    include proxy_params;
    proxy_pass http://unix:/home/max/myproject/myproject.sock;


****************** My file ****************

ALLOWED_HOSTS = [‘’, ‘’,’’, ‘’ , ‘ip number’]

I enter with my and everything works perfect

but When I enter with my, Then the browser sends me the following message “This site can’t be reached”

********************/etc/systemd/system/gunicorn.service ***************************** [Unit] Description=gunicorn daemon

[Service] User=max Group=max WorkingDirectory=/home/max/myproject/myproject ExecStart=/home/max/myproject/myprojectenv/bin/gunicorn --workers 3 -u max -g max --bind unix:/$


Help me, what can be wrong? Do not delay in answering, if positive or negative.


Thanks, you’re right, I’ll do the tutorial steps, as you suggest. And I’ll let you know the result.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel