Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problem with Hostname changing to IP Address

Reply
Thread Tools Display Modes

Problem with Hostname changing to IP Address

 
 
Nathan Given
Guest
Posts: n/a

 
      09-16-2003, 02:54 PM
I have a web page running on a big unix server. My problem is,
everytime I go to the web page the domain name of the server changes
to the ip address.

You can see for yourself...

http://ebiz.byu.edu/textbook
changes to
http://128.187.89.84/textbook/

if you type in http://ebiz.byu.edu/textbook/ (with that last slash),
it will stay as what it should be.

I've asked the network administrator why it does that, and he can't
figure it out... How do I fix this problem?

If you need to know more about the server let me know... and tell me
what commands to type... I'm not super familiar with linux/unix but I
know enough to be dangerous...

Thanks!
--
Nathan
 
Reply With Quote
 
 
 
 
Doug Winger
Guest
Posts: n/a

 
      09-16-2003, 03:09 PM
In article <(E-Mail Removed) >,
(E-Mail Removed) (Nathan Given) wrote:

> I have a web page running on a big unix server. My problem is,
> everytime I go to the web page the domain name of the server changes
> to the ip address.
>
> You can see for yourself...
>
> http://ebiz.byu.edu/textbook
> changes to
> http://128.187.89.84/textbook/
>
> if you type in http://ebiz.byu.edu/textbook/ (with that last slash),
> it will stay as what it should be.
>
> I've asked the network administrator why it does that, and he can't
> figure it out... How do I fix this problem?
>
> If you need to know more about the server let me know... and tell me
> what commands to type... I'm not super familiar with linux/unix but I
> know enough to be dangerous...
>
> Thanks!
> --
> Nathan


A quick possible solution: If you're using Apache, check the ServerName set
in httpd.conf.


- Doug
 
Reply With Quote
 
Monzai
Guest
Posts: n/a

 
      09-16-2003, 03:33 PM


Nathan Given wrote:
> I have a web page running on a big unix server. My problem is,
> everytime I go to the web page the domain name of the server changes
> to the ip address.
>
> You can see for yourself...
>
> http://ebiz.byu.edu/textbook
> changes to
> http://128.187.89.84/textbook/



Dear Nathan,
do you use apache? edit your httpd.conf and change the line
ServerName 128.187.89.84 or if it's still a comment (#)
into this:
ServerName ebiz.byu.edu :-)
Restart your apache webserver and that's it.
Cheers,
Monzai

Webmasters, admins and network managers only :-) :
http://www.monzai.com/ You'll love it!

 
Reply With Quote
 
Maxime Ducharme
Guest
Posts: n/a

 
      09-16-2003, 06:40 PM

When you do not finish a line with a slash "/", Apache
redirects client to ServerName plus URL plus a slash.

Check Servername settings as others said and tell your sysadmin
to read more about Apache and its config ;-)

Ciao

---------------------------------------------------------------
Maxime Ducharme
Administrateur reseau, Programmeur


"Nathan Given" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> I have a web page running on a big unix server. My problem is,
> everytime I go to the web page the domain name of the server changes
> to the ip address.
>
> You can see for yourself...
>
> http://ebiz.byu.edu/textbook
> changes to
> http://128.187.89.84/textbook/
>
> if you type in http://ebiz.byu.edu/textbook/ (with that last slash),
> it will stay as what it should be.
>
> I've asked the network administrator why it does that, and he can't
> figure it out... How do I fix this problem?
>
> If you need to know more about the server let me know... and tell me
> what commands to type... I'm not super familiar with linux/unix but I
> know enough to be dangerous...
>
> Thanks!
> --
> Nathan



 
Reply With Quote
 
Nathan Given
Guest
Posts: n/a

 
      09-17-2003, 01:39 AM
The sysadmin is also my superior... so I just want to get this
straight before I go prancing into his office...

It is running apache ( you can go to http://ebiz.byu.edu directly to
see this). What should the ServerName setting be?

Thanks!
--
Nathan


(E-Mail Removed) (Nathan Given) wrote in message news:<(E-Mail Removed). com>...
> I have a web page running on a big unix server. My problem is,
> everytime I go to the web page the domain name of the server changes
> to the ip address.
>
> You can see for yourself...
>
> http://ebiz.byu.edu/textbook
> changes to
> http://128.187.89.84/textbook/
>
> if you type in http://ebiz.byu.edu/textbook/ (with that last slash),
> it will stay as what it should be.
>
> I've asked the network administrator why it does that, and he can't
> figure it out... How do I fix this problem?
>
> If you need to know more about the server let me know... and tell me
> what commands to type... I'm not super familiar with linux/unix but I
> know enough to be dangerous...
>
> Thanks!

 
Reply With Quote
 
Monzai
Guest
Posts: n/a

 
      09-17-2003, 01:15 PM
Nathan Given wrote:
> The sysadmin is also my superior... so I just want to get this
> straight before I go prancing into his office...


As long as he is human .... ;-)

> It is running apache ( you can go to http://ebiz.byu.edu directly to
> see this). What should the ServerName setting be?


ServerName ebiz.byu.edu

;-) Cheers,
Monzai

 
Reply With Quote
 
Doug Winger
Guest
Posts: n/a

 
      09-17-2003, 02:37 PM
In article <(E-Mail Removed)>, Monzai <(E-Mail Removed)> wrote:

> Nathan Given wrote:
> > The sysadmin is also my superior... so I just want to get this
> > straight before I go prancing into his office...

>
> As long as he is human .... ;-)
>
> > It is running apache ( you can go to http://ebiz.byu.edu directly to
> > see this). What should the ServerName setting be?

>
> ServerName ebiz.byu.edu
>
> ;-) Cheers,
> Monzai
>


One other thing to keep in mind. If Apache's running name based virtual
hosts, the ServerName is set within each VirtualHost section, e.g:

NameVirtualHost:128.187.89.84:80

#### intervening config stuff ###

<VirtualHost:128.187.89.84:80>
ServerName ebiz.byu.edu
DocumentRoot /home/for/ezbiz
</VirtualHost>

That should keep the sysadmin happy and possibly convince him you know what
you're talking about. It's all in the manual.


- Doug
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get hostname from IP address??? Neroku Linux Networking 4 04-22-2007 01:04 AM
how to resolve IP address to hostname arturo1957 Linux Networking 7 03-11-2007 06:18 PM
New to linux and confused about changing the hostname Patrick Shroads Linux Networking 3 02-17-2004 05:05 AM
changing linux hostname without rebooting Tony Linux Networking 8 10-10-2003 11:42 AM
Wrong posting: Changing Hostname made my Linux Box go crazy, Correction here N.K. Linux Networking 2 08-15-2003 01:20 PM



1 2 3 4 5 6 7 8 9 10 11