我已经在我的服务器上添加了CNAME &A记录,我也用nginx命令检查: nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful 我为我的域名example.co & www.example.co: /etc/nginx/sites-available/example.conf编写代码 server {
listen 80;
list
我们已经有了一个名为X.com的网站。现在我正在数字海洋水滴上构建一个Django应用程序。我可以使用IP地址访问它。但我们希望将其命名为reporting.X.com,以便与我们的用户共享。在我的域名提供商上,我已经添加了一个A记录,如下所示
Host- reporting
Type - A
Content - <ip-address> of digital ocean droplet
然而,当我尝试访问reporting.X.com时,我总是收到以下消息。我该怎么办?
Welcome to nginx!
If you see this page, the nginx web s
我正在为我的server使用digital ocean和ubuntu 15.10。我有三个docker containers:nginx、web (适用于angular 2应用程序)和rails适用于rails API。
我计划按如下方式设置nginx配置文件:
port 443 is proxy passed by nginx to my web app。
在那之后,我对如何允许外部访问rails api感到有点困惑?我应该通过subdomain访问rails api吗?如果是,该如何访问?或者,我应该只使用与web应用相同的域名,尽管使用不同的port
下一个问题是,我是否需要一个用于连接
我正在设置一个新的服务器。我选择的http-Server是NGINX。我想添加域audi-freunde-einbeck.de作为虚拟主机。我已经有2个其他域名在那里,它工作得很好,但当我尝试添加上面提到的域名,并启动服务器,它给我Job failed. See system journal and 'systemctl status' for details.我认为这是因为破折号,所以我尝试了各种其他域名有和没有连字符,但没有运气。同样的错误。这可能是什么原因造成的?我也试过重启,我真的不知所措。任何帮助都将不胜感激。
我试了一下,发现,当我只放入一个域名时,它就能工作。但是