LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-10-2004, 02:18 PM   #1
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
IP based virtual hosts problem


I'm running Apache 2.0 on Fedora Core 1, and I'm running into a problem when trying to set up virtual hosts.

After I configure Apache, and try to restart it I get

Starting httpd: (99) Cannot assign requested address: make_sock: could not bind to address xxx.xxx.xxx.13:80
no listening sockets available, shutting down
Unable to open logs


in my network devices I setup eth0 to have ip xxx.xxx.xxx.12 and a virtual device eth0:1 to have ip xxx.xxx.xxx.13. My website on xxx.xxx.xxx.12 was working fine, but the other does not work. Am I overlooking something with the setup of eth0:1?


The reason I want to do IP based instead of name based is for SSL.

Any help will be greatly appreciated.
 
Old 03-10-2004, 02:48 PM   #2
Technonotice
Member
 
Registered: Mar 2004
Location: UK
Distribution: Debian Unstable
Posts: 58

Rep: Reputation: 15
I expect you've already checked this, but is the output from /sbin/ifconfig all ok and showing the (virtual) adaptors set up all ok?
 
Old 03-10-2004, 04:41 PM   #3
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Original Poster
Rep: Reputation: 17
actually I hadn't checked it. It appears everything is workingfine, but I don't know how to read it... I should have mentioned that adm1329=

Here is the output

eth0
Link encap:Ethernet HWaddr mac:address:here
inet addre:xxx.xxx.xxx.12 Bcast:xxx.xxx.11.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:255265 errors:0 dropped:0 overruns:0 frame:0
TX packets:175164 errors:0 dropped:0 overruns:0 carrier:0
collisioins:0 txqueuelen:1000
RX bytes:81210005 (77.4 Mb) TX bytes:40741795 (38.8 Mb)
Interrupt:11 Base address:0xa400 Memory:ea020000-ea020038

eth0:1
Link encap:Ethernet HWaddr mac:address:here
inet addre:xxx.xxx.xxx.13 Bcast:xxx.xxx.11.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:255265 errors:0 dropped:0 overruns:0 frame:0
TX packets:175164 errors:0 dropped:0 overruns:0 carrier:0
collisioins:0 txqueuelen:1000
RX bytes:81210005 (77.4 Mb) TX bytes:40741795 (38.8 Mb)
Interrupt:11 Base address:0xa400 Memory:ea020000-ea020038
 
Old 03-10-2004, 10:28 PM   #4
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Original Poster
Rep: Reputation: 17
ok... I feel really stupid now, but I figured it out. I had the wrong IP entered in for eth0:1. It works much better with the right IP
 
Old 03-11-2004, 10:40 AM   #5
Technonotice
Member
 
Registered: Mar 2004
Location: UK
Distribution: Debian Unstable
Posts: 58

Rep: Reputation: 15
Quote:
Originally posted by adm1329
ok... I feel really stupid now, but I figured it out. I had the wrong IP entered in for eth0:1. It works much better with the right IP
Lol!

We all do it... every day, every week... !
 
  


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
Postfix + Virtual Hosts Problem vbfischer Linux - Networking 1 03-30-2005 08:42 PM
Apache - name based virtual hosts? Moses420ca Linux - Software 7 01-26-2005 11:04 AM
virtual hosts problem newuser455 Linux - Software 0 08-29-2004 08:01 PM
Name Based Virtual Host problem helios007 Linux - Networking 6 12-21-2003 03:41 PM
Problem with Apache Virtual Hosts jaberwooky Linux - Software 4 09-23-2003 01:37 PM


All times are GMT -5. The time now is 09:15 PM.

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