LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-30-2003, 03:27 PM   #1
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Rep: Reputation: 15
Cool localhost.localdomain & apache question


I am running RedHat 9 without X installed. I am wondering what file holds the host and domain names. Ex. right now it says <user>@localhost.localdomain. I would like to make it to use my registed domain name. NeoZero62@webserv.oasisone.org. I know this is done in a conf file, but I can not find it. Can anyone help me? Also, dose anyone know how to disable directory indexing in apache 2.0? Thanks for your time.
-Randy
 
Old 11-30-2003, 03:49 PM   #2
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
well, if you're just running it locally, then as root, the command would be # hostname yourmachine.yourdomain.com .

To make that change permanent, go to /etc/sysconfig and modify "network" to have the same name as above.

If you want to have the rest of the world go to your domain, then you'll need to set up BIND/named ...which is a whole can of worms.
 
Old 11-30-2003, 04:05 PM   #3
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Original Poster
Rep: Reputation: 15
I have bind and everything setup, my webserver and name servers all work. I was just not able to find the conf file for this box. I think that localhost.localdomain is anoying, I would just like to change it. Thanks for the file path and command! Anyone know about apache?
 
Old 11-30-2003, 04:51 PM   #4
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Original Poster
Rep: Reputation: 15
Ahh, I changed my domain name, and restarted the box to see if the settings worked after a restart, and apache will not load now! How could the name change stop apache from loading? I tryed to start it manualy, but it said apache startup failed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 01:41 AM
localhost.localdomain steve007 Linux - Newbie 3 07-27-2005 04:48 AM
Localhost Localdomain Question threegig Linux - Newbie 9 06-15-2005 08:29 AM
localhost.localdomain DJOtaku Linux - Networking 4 12-07-2004 10:53 PM
ctladdr=<apache@localhost.localdomain> Drogo Linux - Software 0 02-09-2004 04:55 PM


All times are GMT -5. The time now is 04:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration