让 Opera 不假设我正在使用端口 80
Make Opera not assume I am using port 80
我已将我的本地 Web 服务器设置为对 http 使用端口 8000,对 https 使用端口 8444,因为我经常争用默认端口 80。
我的网络服务器启动正常,显示它使用端口 8000 访问 http,并且使用 Opera 浏览器(我选择的浏览器),我无法打开任何站点,例如 http://abc.loc. I have to type in http://abc.loc:8000. So - I am assuming this is the browser's interpretation, or maybe something in Windows I can change, and not the web server. I want to be able to just type http://abc.loc,并且网站打开。
关于如何告诉 Windows/Opera 使用网络服务器分配的端口而不是默认端口 80 的任何想法?
我认为你做不到。
80 是分配给 HTTP 流量的 TCP 端口。这是所有 public 面向 Web 服务器侦听 HTTP 的端口。逻辑上浏览器默认使用此端口。
使用此默认值以外的任何其他内容用于测试,"hiding" 来自爬虫和用户的服务,或者因为有人想在没有 root 权限的情况下启动 Web 服务器。
我已将我的本地 Web 服务器设置为对 http 使用端口 8000,对 https 使用端口 8444,因为我经常争用默认端口 80。
我的网络服务器启动正常,显示它使用端口 8000 访问 http,并且使用 Opera 浏览器(我选择的浏览器),我无法打开任何站点,例如 http://abc.loc. I have to type in http://abc.loc:8000. So - I am assuming this is the browser's interpretation, or maybe something in Windows I can change, and not the web server. I want to be able to just type http://abc.loc,并且网站打开。
关于如何告诉 Windows/Opera 使用网络服务器分配的端口而不是默认端口 80 的任何想法?
我认为你做不到。
80 是分配给 HTTP 流量的 TCP 端口。这是所有 public 面向 Web 服务器侦听 HTTP 的端口。逻辑上浏览器默认使用此端口。
使用此默认值以外的任何其他内容用于测试,"hiding" 来自爬虫和用户的服务,或者因为有人想在没有 root 权限的情况下启动 Web 服务器。