简体   繁体   English

更改WAMP服务器上的端口

[英]Changing port on WAMP Server

OK, I have a WAMP Server that I have changed the port from 80 to 7080 in the httpd.conf, but now I have an issue where when I go to the localhost it comes up blank. 好的,我有一个WAMP Server,我已将httpd.conf中的端口从80更改为7080,但是现在我遇到一个问题,当我进入本地主机时,它变成空白。

To actually get the content I want to see I have to go to localhost:7080. 要实际获取我想看到的内容,我必须转到localhost:7080。

How can I change it so when I go to localhost without the port number and it displays the content I want to see. 我如何更改它,以便在没有端口号的情况下转到localhost并显示想要查看的内容。

I have been trying to resolve this for the best part of the day, literally around 12 hours now and I am still at a loss as to how to resolve this so any assistance would be appreciated. 我一直试图在一天中的大部分时间里解决此问题,实际上是在大约12个小时之前,我仍然对如何解决此问题感到茫然,因此不胜感激。

You can add 127.0.0.1:7080 mylocalhost to C:\\Windows\\System32\\drivers\\etc\\host file and use mylocalhost as url link, 您可以将127.0.0.1:7080 mylocalhost添加到C:\\ Windows \\ System32 \\ drivers \\ etc \\ host文件中,并使用mylocalhost作为url链接,

If you changed port from 80 to 7080, you must use it in browser to load your WAMP server. 如果将端口从80更改为7080,则必须在浏览器中使用它来加载WAMP服务器。

I hope it will help. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM