Viewing MAMP Pro site on iPad

半腔热情 提交于 2019-12-02 08:16:24

问题


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.

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?


回答1:


Use a xip.io address.

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

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

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

Restart everything, run!

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



来源:https://stackoverflow.com/questions/15437962/viewing-mamp-pro-site-on-ipad

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!