LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP based virtual hosts problem (https://www.linuxquestions.org/questions/linux-networking-3/ip-based-virtual-hosts-problem-155954/)

adm1329 03-10-2004 02:18 PM

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.

Technonotice 03-10-2004 02:48 PM

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?

adm1329 03-10-2004 04:41 PM

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=:newbie:

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

adm1329 03-10-2004 10:28 PM

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 :D

Technonotice 03-11-2004 10:40 AM

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 :D
Lol! :D

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


All times are GMT -5. The time now is 12:19 PM.