我需要做什么配置:localhost/Name /而不是localhost:8080?
在这种情况下我该怎么办?
Exenple localhost:8080/NoName/View/LogRegister/LogRegisterForm.php是我的原始链接,我希望有以下链接:
localhost/NoName/View/LogRegister/LogRegisterForm.php
Run Code Online (Sandbox Code Playgroud)
谢谢
它不是"PHP" - 这是使用的语言.XAMPP通常使用Apache作为它的Web服务器,它是确定端口的Web服务器.
寻找http.conf.编辑它,并将端口更改为"80".这里有更多细节:
我相信你也可以使用"xampp.ini":
===============================================
附录:
我不理解你.
总是有一个"港口".
如果未指定端口,则默认为"80"(对于http)或"443"(对于https).
例子:
http:// localhost:8080/index.php:你明确地说"index.php"和"port 8080".
http://localhost/index.php:端口80是隐式的.
http:// localhost:80/index.php:端口80是显式的.实施例2)和3)是等同的.最后,
HTTP://本地主机意味着)端口80,和b)指数点东西:index.html,index.htm,index.php,index.jsp,等等-无论你已经配置为"默认页".
'希望有帮助......
| 归档时间: |
|
| 查看次数: |
5029 次 |
| 最近记录: |