Local Name Resolution without Port - MAMP Pro

ぃ、小莉子 提交于 2019-12-04 13:30:00

问题


This has been bothering me for a while, within MAMP Pro, I've got a few sites setup with "Local Name Resolution", however they only work with a port number. I've noticed many people are able to get them to work without any port numbers.

E.g Chris Coyier from CSS-Tricks can work directly on v10.whatup, where as my own would only work on v10.whatup:8888

TL:DR. test.dev:8888 works, but not test.dev/

Am I missing something/What's the problem?

UPDATE/EDIT:
If I set MAMP Pro port settings to use 80/443 & 3306 (Apache/SSL & MySQL), it seems to work without a port after URL. Although the MAMP Ports setting of: 8888/8890 & 8889 are the default when you first install.

Is the 80/443 setting okay to use, even though it's not default?


回答1:


It seems that changing the ports to 80/443 & 3306 (Apache/SSL & MySQL) instead of the MAMP defaults: 8888/8890 & 8889 will allow use of local name resolution without any port after domain.



来源:https://stackoverflow.com/questions/16131093/local-name-resolution-without-port-mamp-pro

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