【发布时间】:2014-03-18 15:39:08
【问题描述】:
我有一个 ngnix 服务器设置并在本地运行以进行一些开发测试。我希望能够通过网络连接到它。我在本地网络上有一个要连接到服务器的设备。我该怎么做?设备和我的电脑都连接在 VPN 中。 VPN给了我一个IP地址。由于localhost和ip相同,设备不应该能够连接到该ip地址吗?
server {
listen 8080;
server_name localhost;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
【问题讨论】:
标签: networking web