| View previous topic :: View next topic |
| Author |
Message |
Erazo
Joined: 10 Mar 2004
Posts: 2
|
| Posted: Wed Mar 10, 2004 4:47 pm Post subject: how to change localhost name |
|
|
Hi,
I recently started to use Apache2Triad and I love it. One thing I would like to do is change the localhost name to a name I prefer. Example erazo-localweb instead of localhost. Can this be done?
I stopped the Apache2Triad Apache2 Service, opened httpd.conf file and changed the following:
ServerName localhost:80
to
ServerName erazo-localweb:80
Saved the file and restarted the Apache2Triad Apache2 Service
When I go to http://erazo-localweb/apache2triad/ web page, it gives me a page not found error.
However, when I go to http://localhost/apache2triad/ web page, all is fine and still reports the hostname as localhost instead of erazo-localweb.
Is there something I am missing? If anyone can provide any help, I would appreciate it since I am new to this.
Thanks,
Erazo |
|
| Back to top |
|
bvdugo
Joined: 13 Aug 2003
Posts: 16
|
| Posted: Wed Mar 10, 2004 8:52 pm Post subject: you need a domain name |
|
|
localhost would have to change to something like
yoursite.com
or
yoursite.freehost.com
you can't change it to any word you want,
but you can change it to any domain you register |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Wed Mar 10, 2004 9:37 pm Post subject: |
|
|
see the FAQ and the domain changing script |
|
| Back to top |
|
Erazo
Joined: 10 Mar 2004
Posts: 2
|
| Posted: Thu Mar 11, 2004 3:51 am Post subject: |
|
|
bvdugo: Thanks for the information but I strictly want to keep it locally on my machine. I am not ready to register a domain name just yet. So I guess the answer would be I can't change localhost name to anything I want on my local machine?
mancini: Which FAQ 's are you referring to? The Apache.org FAQ 's or your personal FAQ 's? The FAQ 's on my local server where I installed Apache2Triad? Where would I find this? Also, where would I find the domain changing script? Is this associated in the FAQ 's you are referring to?
Sorry to be so ignorant about this.
Again, thanks for your continued help.
Erazo
[/b] |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 1538
|
| Posted: Thu Mar 11, 2004 9:13 am Post subject: |
|
|
i was refering to the apache2triad FAQ of course
you can find it in a thread on this board or access it via the online FAQ link in apache2triad |
|
| Back to top |
|
kolatracks
Joined: 07 Jul 2003
Posts: 313
Location: UK
|
| Posted: Fri Mar 12, 2004 4:41 am Post subject: |
|
|
Erazo, you need to add an entry to your hosts file for that hostname.
Firstly read the FAQ , and as suggested you'll probably want to run the domain change script, but after that you need to edit your hosts file.
On XP it's at c:\windows\system32\drivers\etc\hosts (assuming c:\windows as root). Open that in notepad and make it look something like this:
Code:
127.0.0.1 localhost erazo-localweb
Again assuming 'erazo-localweb' is the hostname you want to use. |
|
| Back to top |
|
| |