hostname in mandrake 8.2

thenewnoise

Senior member
Mar 27, 2001
494
0
0
when setting up apache in mandrake 8.2 it asks for a hostname (example mybox.mydomain) and im not to sure what to put in there, i want people to just access the server from the ip address so should i just put the ip address of the computer in there or what? i tried localhost and that didnt work it says it was invalid. any suggestions would be great. thanks

i should probally tell you this
the machine has a static ip (192.168.1.11) and its behind a router (192.168.1.1) and i have cox cable which isnt a static ip.
 

theXing

Member
Aug 15, 2001
143
0
0
You can set it to anything you want. Aslong as the router sends anything on port 80 to your computer. That is how I have mine set up. The name is more for the internal lan - as well as latter you can have it be www.yourip.com or thenewnoise.yourip.com. A higher knowledge then I have on how to set that up.
 

thenewnoise

Senior member
Mar 27, 2001
494
0
0
the thing is if i type in just "goddamnit" (which is what i want it to be) it says invaild name and if i type in 192.168.1.11 then when i bring up a terminal it says
[matt @192 matt]$
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Try adding goddamnit or whatever to your /etc/hosts file.

EDIT: Also look at using the hostname command (or however Mandrake does it) to set the hostname of the machine to the same thing.
 

theXing

Member
Aug 15, 2001
143
0
0
Try it as a virtual server...I had no problem with it. Try to reinstall and set it up through the install setup.
 

thenewnoise

Senior member
Mar 27, 2001
494
0
0
well i used the hostname command and changed it to "goddamnit" but if i try it through the wizard it still says its not correct.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< well i used the hostname command and changed it to "goddamnit" but if i try it through the wizard it still says its not correct. >>



Did you also add it to /etc/hosts?

And what wizard are you talking about?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< the mandrake control center wizard and i havent added it to that file yet, im doing that now >>



I guess my lack of knowledge on Mandrake hurts me here. I shouldnt have learned the standard way to do things I guess... ;)
 

thenewnoise

Senior member
Mar 27, 2001
494
0
0
haha, if you want to take the time to explain the standard way to me im all ear, of it you want to point me somewhere.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< haha, if you want to take the time to explain the standard way to me im all ear, of it you want to point me somewhere. >>



I dont know what you have done or what you are planning on doing or exactly how to do it in Mandrake. On my systems there is a place to put the hostname (in one of the startup config files). I also editted /etc/hosts to add my other systems so I wouldnt have to type ip addresses. Atleast until I setup BIND. I havent setup apache in a while, but I dont remember having to put in anything wierd for the hostname in there.

EDIT: I also dont see a hostname field in the httpd.conf.