LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-17-2006, 11:26 AM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Rep: Reputation: 31
Exclamation How do you name a server?


Hello friends, here at work we set up a LAMP server for our Intranet. For now we can access it by typing the IP address, but we wanted to just type "intranet" or something else instead of the IP. I've looking to this answer in the apache website, but I'm a newbie in Apache so I have not figure it out yet. Thanks for your help..
 
Old 08-17-2006, 11:48 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What you actually have to do is add a name and the corresponding IP address to a DNS server on your network. This will map the name to an IP. I don't know how big your company is, but our company automatically adds your machine hostname to the DNS server list when you register it on the network.
 
Old 08-17-2006, 11:50 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by cucolin@
Hello friends, here at work we set up a LAMP server for our Intranet. For now we can access it by typing the IP address, but we wanted to just type "intranet" or something else instead of the IP. I've looking to this answer in the apache website, but I'm a newbie in Apache so I have not figure it out yet. Thanks for your help..
It should have nothing to do with apache rather what your machine is named as in the file /etc/hosts and /etc/hostname. For example if your machine has a line like this in your /etc/hosts.

Code:
127.0.0.1       localhost.localdomain   localhost intranet
And the /etc/hostname is the same (eg contains intranet for the name) then on the server itself http://intranet will access it. Now assuming that the other machines run linux and they have a line like this in the /etc/hosts.

Code:
192.168.0.100      intranet
Then they will know that the machine at IP address 192.168.0.100 is named intranet and when they send out the request for http://intranet they will contact the 192.168.0.100 address. Now where this/these file(s) location(s) is/are if using windows I have no clue.
 
Old 08-17-2006, 11:51 AM   #4
kordump
LQ Newbie
 
Registered: Jan 2006
Location: Houston, Texas U.S.A.
Distribution: CentOS, RedHat, Fedora, Debian, Ubuntu
Posts: 5

Rep: Reputation: 0
You will also need to set the following in your httpd.conf:
Code:
ServerName intranet.mycompany.com
And of course you'll need to substitute mycompany.com with the appropriate domain name.
 
Old 08-17-2006, 02:52 PM   #5
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Ok, HappyTux I followed your steps, but I got another page when I typed "intranet" in my browser I get from Novell(which is what this organization uses) saying:

STARGATE NetWare Management Portal

And is asking me for a login name.
Can I set this to any other name. I need to make this easy for the users here at work. We are about 25-30 users.

Thanks

Last edited by cucolin@; 08-17-2006 at 03:08 PM.
 
Old 08-17-2006, 04:40 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by cucolin@
Ok, HappyTux I followed your steps, but I got another page when I typed "intranet" in my browser I get from Novell(which is what this organization uses) saying:

STARGATE NetWare Management Portal

And is asking me for a login name.
Can I set this to any other name. I need to make this easy for the users here at work. We are about 25-30 users.

Thanks
By typing in "intranet" do you mean http://intranet/ to be telling the server you are looking for a webserver on that machine to serve you up the default home page? Also is the webserver on the Novel machine? On linux you can set the hostname to anything you want if you have control of the machine now if you are running Netware on the server then what I remember from the the servers I set up about 15 years ago with it is rather poor and outdated.
 
Old 08-18-2006, 10:10 AM   #7
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Yes I have control over the server and it is not running Netware. Yes, we want our users just to type "intranet" or http://intranet and be able to view the default page. This webserver is NOT on the Novell machine. I was doing the steps you told me but I still DON'T get when I type "hostname" intranet and get the name I previously had.

Thanks
 
Old 08-18-2006, 11:47 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by cucolin@
Yes I have control over the server and it is not running Netware. Yes, we want our users just to type "intranet" or http://intranet and be able to view the default page. This webserver is NOT on the Novell machine. I was doing the steps you told me but I still DON'T get when I type "hostname" intranet and get the name I previously had.

Thanks
Ok then it looks like somehow the novell machine/something in your configs is telling the machines that the novell machine is named intranet try using something like localnetwork or companynet for the name of the machine.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora i686/2.4.27-0.3um - Server hostname reverts to original upon server reboot foxhosting Linux - Newbie 2 02-25-2006 03:39 AM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration