0

我对此一无所知,但我已经做了一些阅读。如果我将我的两个域指向 VPS 名称服务器,我的 app-nginx.conf 看起来像这样:

server {
      listen 80;
      server_name www.domain1.com;
      root /path/to/your/project;
   }

server {
      listen 80;
      server_name www.domain2.com;
      root /path/to/your/project;
   }

还有什么我需要做的吗?它目前似乎不起作用。

4

1 回答 1

0

please try on server:

telnet localhost 80
GET / HTTP/1.1
Host: www.domain2.com
<double ENTER>

What you see now?

What you see in logs, when nginx start? What is output of nginx -T ?

于 2012-09-26T18:44:34.123 回答