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

问题描述

我刚开始使用付费版本的MAMP,MAMP Pro,但在通过iPad/iPhone访问我的网站时遇到了一些麻烦.

I've just started using the paid version of MAMP, MAMP Pro, and I'm having some trouble accessing my site via my iPad/iPhone.

我已经使用默认端口(80、3306)设置了MAMP服务器,并试图通过以下方式访问iPad上的站点:.

I've got my MAMP server set up with the default ports (80, 3306) and am trying to visit the site on my iPad via: 10.0.1.2:80/project-name.

但是没有骰子,我在做什么错了?

But no dice, what am I doing wrong?

推荐答案

使用 xip.io 地址.

在MAMP PRO中选择主机(在本示例中为client.dev),转到高级"选项卡,然后将其放入自定义常规设置"中:ServerAlias client.*.xip.io

Select your host in MAMP PRO (client.dev in this example), go to the Advanced tab and put this in the Customized General Settings: ServerAlias client.*.xip.io

将WP URL设置为http://client.YOUR-LOCALHOST-IP-ADDRESS.xip.io.

Set WP URLs to http://client.YOUR-LOCALHOST-IP-ADDRESS.xip.io.

对于开发而言,最好在系统偏好设置中设置静态IP DHCP地址.

For development, it's better to set a static IP DHCP address in your system preferences.

重新启动一切,运行!

我已经回答了相同的问题在WordPress答案中有更深入的了解.

I've answered the same a bit more in-depth in WordPress Answers.

这篇关于在iPad上查看MAMP Pro网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 19:17