2020-05-17 03:55:49
Nginx
, 2020-05-17 03:55:49

2 domains on the same IP do not work?

listen 80;
listen[::]:80;
server_name WebsiteNumberOne.com Somedomain.net;
set $base /home/somesite;
root $base/html;

this is the last config i tried.
I also tried to separate them into separate configs, somedomain.net still refuses to work, ERR_CONNECTION_REFUSED error.

rebooted configs, did tracing, the domain leads to IP everything is smooth.
the server refuses to accept connections on the second domain, what's the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2020-05-17
@vitaly_il1

I would still double-check the DNS.
What does
wget WebsiteNumberOne.com
and
wget Somedomain.net give
?

D
drKox, 2020-05-18
@drKox

What are the entries in localhost?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question