在本地网络上提供WAMP www [英] Make WAMP www available on local network

查看:159
本文介绍了在本地网络上提供WAMP www的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有类似的问题,但没有解决我的具体情况。

I know there are questions similar to this, but none address my specific situation.

我有一个WAMP服务器设置用于开发一些网站,它运行良好。我需要通过无线路由器将其用于本地网络上的另一台计算机。另一台计算机实际上是Mac,我只需要能够通过浏览器查看开发站点(不需要访问phpmyadmin或mySQL)。

I have a WAMP server setup for developing some websites, and it's running great. I need it to be available to another computer on my local network via a wireless router. The other computer is actually a Mac, and I only need to be able to view the development sites through a browser (do not need to access phpmyadmin or mySQL).

我能够通过浏览器访问运行WAMP的本地主机(显示默认的WAMP页面,其中包含指向站点项目的链接),使用我的Windows IP机。显然点击链接会导致找不到页面,因为URL是相对于localhost的,但即使我明确地用IP键入url( http://192.168.2.1/myproject )我什么都没得到。 (并且即使我输入了如下所示,url也会重定向到localhost / myproject)

I am able to access the localhost on which WAMP is running through the browser (the default WAMP page is displayed with links to the site projects) using the IP of my windows machine. Obviously clicking on the links would result in page not found since the URL is relative to localhost, but even if I explicitly type in the url with the IP (http://192.168.2.1/myproject) i still get nothing. (and the url redirects to localhost/myproject even if I type it in as shown)

我的主机有一个动态IP,但由于它是硬连接到调制解调器和路由器IP不会改变,除非我重置路由器/调制解调器。我不能看到这是问题,因为我可以使用Mac上的IP访问默认的WAMP页面。

My host machine has a dynamic IP, but since it is hard-wired to the modem and router the IP does not change unless I reset the router/modem. I can't see this being the problem though since I am able to access the default WAMP page using the IP from the Mac.

任何想法?

推荐答案

现在我已经弄明白了。

Makes sense now that I have figured it out.

重定向到localhost实际上是由构建该站点的CMS的配置文件引起的(因此它为什么会显示主WAMP页面,但不是能够加载项目网站)。

The redirect to localhost was actually caused by the configuration file for the CMS that the site was built on (thus why it would bring up the main WAMP page, but not be able to load the project site).

这篇关于在本地网络上提供WAMP www的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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