I know a similar question (http://community.apachefriends.org/f/viewtopic.php?f=16&t=35928&start=0&hilit=host+name)has been asked but I have a different concern.
I have a similar situation as described in the above thread. I am running xampp in one of my computer (hostname = mypc) and would like to access the web from another computer within the local network. I can http://mypc/ to access it without problem.
However, somewhere in the application (Gallery2) it is coded a global constant
- Code: Select all
$storeConfig['hostname'] = 'localhost';
This creates no problem when I test run it on the server machine. But when I am accessing it over the network, such address gives error. However, I do not want to modify the application configuration file to change 'localhost' to 'mypc' because it becomes less portable, and creates headache during application upgrade.
Is there a way to recognize the xampp server both by hostname as well as 'localhost'?
Thanks in advance