LinuxQuestions.org
Help answer threads with 0 replies.
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 05-21-2005, 06:21 PM   #1
MichaelD
LQ Newbie
 
Registered: May 2005
Location: Newcastle upon Tyne, UK
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
Major problems with hostname, virtual server etc


Hello

I'm almost tearing my hair out here trying to get this to work. I've tried everything I can think of, asked in various forums but nothing I do seems to work.

I have absolutely no problem running 4 websites via virtual servers on Apache on Windows. All I had to do was emter the aliases and IP address in httpd.conf, restart the server and that was it.

Now I can't even access any sites at all. They all throw back a 404. When I reboot, it says cannot resolve hostname etc for both addresses I've setup so far.

I have configured my network card to obtain an IP address automatically with DHCP.

Under DNS I have put localhost

Hosts:
Address = 82.xx.4x.xxx
Hostname = localhost
Aliases = localhost

I have bought 2 domains and have them pointing to my IP. Neither of them resolve though.

Even 4 I use from dyndns.org don't work now

Here are the contents of my Hosts file and Network file

127.0.0.1 localhost.localdomain localhost
82.xx.4x.xxx michael-denholm.co.uk localhost

I paid for the michael-denholm.co.uk name

NETWORKING=yes
HOSTNAME=localhost

Can anyone please please help me here. I'm desperate to get these working. I've been serching on Google and forums for almost a full day and I'm now at my wits end.

I don't know whether the problem lies with my network card setup, the Hosts file or the Network file.

Many thanks to anyone who can help me.


Last edited by MichaelD; 05-21-2005 at 06:25 PM.
 
Old 05-21-2005, 08:51 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Try this for /ect/hosts
Code:
127.0.0.1 michael-denholm localhost
82.xx.4x.xxx michael-denholm.co.uk  michael-denholm
For the other why not try your hostname (michael-denholm)
 
  


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
major problems serksimper Linux - Enterprise 2 08-16-2005 08:38 PM
having major problems, help! Niflheim Linux - General 11 03-04-2005 01:31 PM
Redhat Linux on Microsoft Virtual Server Problems???? mcostello1 Linux - Hardware 1 09-01-2004 11:14 PM
MAJOR problems! CPUguy387 Linux - Newbie 3 08-20-2004 02:50 PM
Major Virtual Host Config Issues klintonray Linux - Software 2 08-07-2003 07:20 PM


All times are GMT -5. The time now is 08:32 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