写端口没有端口 [英] write url without port

查看:82
本文介绍了写端口没有端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dears'



我有一个实时网站,我想把端口从80改为8081



我成功地从iis7更改了它,但问题是当用户输入url时他必须输入端口号



ex:

test.com他必须输入test.com:8081



i当用户输入test.com页面打开时没有输入端口号

Dears'

I have a live website and i want to change the port from 80 to 8081

I changed it from the iis7 successfully but the problem is when the user enter the url he had to enter the port number

ex:
test.com he had to enter test.com:8081

i want when the user enter test.com the page open without type the port number

推荐答案

默认情况下,浏览器使用端口80,不知道为什么除了阻止端口的isp之外你还想更改它。如果是这种情况,您的访问者将需要通过已编码的其他网站上的链接更改端口或访问权限。



如果您只是想主办多个站点,查看主机标头



另外请注意,如果您还有其他需要在内部使用该端口,您的路由器可能能够接收端口请求80并为你改为8081 ....
The browsers use port 80 by default, not sure why you'd want to change this other than your isp blocking the port. If thats the case, your visitors will need to change the port or access via a link on another site with it already coded.

If you're just trying to host multiple sites, look into host headers

One other note, if you have some other need to use the port internally, your router may be able to take the request on port 80 and change it to 8081 for you....


这篇关于写端口没有端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆