Page 1 of 1

Change localhost name

PostPosted: 15. October 2011 04:34
by macbb1117
Hi,

I know how to add "virtual" names to my host file to access my xampp server other than localhost, but that seems only to work on the computer that I have xampp installed on. I'd like to be able to have the other computers on my network use the same "virtual" domain to access my webserver (instead of having to use the IP address or computer name). Is this possible??

Thank you!

Matt

Re: Change localhost name

PostPosted: 15. October 2011 04:37
by Sharley
Hello Matt,
We require your XAMPP version and your Windows Version to provide the correct version support - please read the following Announcements.
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670

Thanks.

Re: Change localhost name

PostPosted: 15. October 2011 04:51
by macbb1117
I'm sorry. I am running XAMPP Lite (Basis Package) version 1.7.3 on Windows Vista.

Thank you again!

Re: Change localhost name

PostPosted: 15. October 2011 05:01
by Sharley
Matt, did you setup VirtualHosts in the \apache\conf\extra\httpd-vhosts.conf file as well as adding the names to localhost in the HOSTS file of the XAMPPLite PC?

How many PC's on your LAN?
One way to do this if you only have a couple of PCs on your LAN is to add the ServerName and the IP address of the XAMPPLite PC to the HOSTS file of the other LAN PCs

Does this topic help in any way?
viewtopic.php?f=16&t=48267

Good luck. :)

Re: Change localhost name

PostPosted: 15. October 2011 05:10
by macbb1117
Yes, I have configured this file. The problem is not on the local machine, I am able to use any name I select, it just doesn't work over LAN. The only way I can access my webfiles is by using the IP address or the name of the computer running XAMPP.

Re: Change localhost name

PostPosted: 15. October 2011 05:44
by Sharley
OK, localhost is fine.

Now you need to access your Apache server using the ServerName of the VirtualHost you setup in the httpd-vhosts.conf file form the PCs on the LAN
Sharley wrote:How many PC's on your LAN?
One way to do this if you only have a couple of PCs on your LAN is to add the ServerName and the IP address of the XAMPPLite PC to the HOSTS file of the other LAN PCs

There is also a networks file in the same folder as the HOSTS file, see if a setting in there helps.

An alternate method to the HOSTS file perhaps:
Sharley wrote:Does this topic help in any way?
viewtopic.php?f=16&t=48267


Make sure there are no firewalls or security programs blocking access to ports 80 - 443 - 3306.