How can i change "localhost"

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

How can i change "localhost"

Postby trelos8 » 21. September 2015 12:24

Hello all!!

I want to change the pathway localhost/test to
local.test.com

How can i do that?
trelos8
 
Posts: 1
Joined: 21. September 2015 12:16
Operating System: windows xp

Re: How can i change "localhost"

Postby Nobbie » 21. September 2015 12:42

1) Edit httpd.conf and change the value of DocumentRoot to c:/xampp/htdocs/test

2) Edit the Windows Hosts file (see Wikipedia if in doubt) and insert one line:

127.0.0.1 local.test.com


Restart Apacher after.
Nobbie
 
Posts: 8762
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 47 guests