我刚刚下载了适用于Windows的NGINX,而且我还有点蠢蠢欲动。 它已启动并运行我的索引文件显示在 127.0.0.1:8080 ,但我的网络服务器连接到我的域时出现问题。
根据我在网上阅读的文档中的理解,我必须在我的注册商处更改DNS属性(目标-IP是我的公共IP):
这是我的nginx.conf文件:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name erikbugge.no www.erikbugge.no;
location / {
root www;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root www;
}
}
}
我还将端口8080端口转发到我的路由器中的本地IP地址。
现在的问题是,每当我尝试访问我的网页 www.erikbugge.no 时,它只会将我重定向到我的公共IP地址。 我很确定我做错了什么,但我不知道它是什么。
请保持温和,我是这个网络服务器的新手。