MAMP- Use local IP instead of 'localhost' in address?
Is it possible to get MAMP to show my local IP address in the url instead of the text 'localhost'?
The reason I want this is im using the Drupal CMS whi开发者_JAVA百科ch caches some absolute links to images. Im on mac so I need to test my site with a PC so I can use IE. If I type in my mac's local IP address I can access the site over my network.
However, the absolute links which use 'localhost' not the IP don't display.
Thanks
I'm about 99% sure that if you set up MAMP to work on port 80 you'll get your local drupal site from a remote machine on the same network (if you don't set it up on port 80 you'll just need to append the port number to the request ie: h ttp://1.0.0.0.1:8080/)
Ive found a solution. If I access the site on my local computer and type in my local IP, and then refresh the cache then the absolute links are created with the local IP. This makes them work on both my main computer and networked ones aswell.
精彩评论