How to change?

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

How to change?

Postby farmdve » 23. January 2008 17:23

How to change the name u input in browser "localhost" to something else?
Or it is not possible?
farmdve
 
Posts: 19
Joined: 27. November 2007 21:01

Postby sari42 » 23. January 2008 17:31

change
127.0.0.1 localhost
to
127.0.0.1 localhost myserver1 myserver2 #and what not
in your ...sytem32/drivers/etc/hosts file.

(host corrected to hosts, thx cannon)
Last edited by sari42 on 24. January 2008 15:17, edited 1 time in total.
sari42
 
Posts: 800
Joined: 27. November 2005 18:28

Postby LooseCannon » 24. January 2008 14:26

sari42's suggestion works on any PC on which the "hosts" (note that it's hosts, not host) file is amended. It can be very useful for development work and in-house testing. My hosts file tells a story! ;)

For a more flexible/dynamic solution, look at virtual hosting. Search this forum for that and/or "vhost" and you'll find a wealth of information.

Other reference material:
http://httpd.apache.org/docs/2.0/vhosts/
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Postby farmdve » 25. January 2008 15:15

So i can change this "localhost" to something else like "mylocalhost" ?
farmdve
 
Posts: 19
Joined: 27. November 2007 21:01

Postby Scory » 25. January 2008 15:34

Yes.
Scory
 

Postby farmdve » 26. January 2008 15:00

Also where can i edit the mod_autoindex so i can change the apppearance of the def. style iread the article but its pointless in reading because it doesnt say wich file to open etc..
farmdve
 
Posts: 19
Joined: 27. November 2007 21:01

Postby LooseCannon » 28. January 2008 12:22

farmdve, would you please re-write your question in long-hand. It's not clear to me what you're asking.
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Postby farmdve » 30. January 2008 17:59

Nevermind i already have the answer
farmdve
 
Posts: 19
Joined: 27. November 2007 21:01


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 110 guests