Change localhost name

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Change localhost name

Postby macbb1117 » 15. October 2011 04:34

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
macbb1117
 
Posts: 3
Joined: 15. October 2011 04:30

Re: Change localhost name

Postby Sharley » 15. October 2011 04:37

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Change localhost name

Postby macbb1117 » 15. October 2011 04:51

I'm sorry. I am running XAMPP Lite (Basis Package) version 1.7.3 on Windows Vista.

Thank you again!
macbb1117
 
Posts: 3
Joined: 15. October 2011 04:30

Re: Change localhost name

Postby Sharley » 15. October 2011 05:01

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. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Change localhost name

Postby macbb1117 » 15. October 2011 05:10

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.
macbb1117
 
Posts: 3
Joined: 15. October 2011 04:30

Re: Change localhost name

Postby Sharley » 15. October 2011 05:44

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 123 guests