![]() |
UNIX / APACHE masters? -- Listen Directive?
Argh. I know my way around unix/apache plenty. But for some reason apaches "Listen" directive seems to be broke.
Is anyone using the apache "Listen" directive to sucessfully bind _that instance of apache_ to certain ip's? Here's what I'm doing on this server: I want to have one apache server plain jane (just a basic static install).. I ONLY want it to listen to a few different IP's on port 80. I need to use name based virtual hosts. I am running another apache server on the same machine with mod_php, openssl etc etc.. the full blown bloated apache server. This will also be listening to DIFFERENT ip's. Forget about the full blown server for now. What I'm trying to do just pertains to the slimmed down apache... httpd.conf info: I have created a few lines of Listen 12.33.44.55.66:80 Listen 12.33.44.55.67:80 Listen 12.33.44.55.68:80 etc, of the IP's I want THAT apache server to respond to. I then have a single: NameVirtualHost * declared to say "look out for name based virts on all the IP's that you should be 'Listening' to" Then in each virtual host, I'm using: [VirtualHost *] (The >< wouldnt translate.) afaik this SHOULD be working.. but its not doing chit. Argh. |
Hi,
I can't remember but in the old slackware days we had to also edit something in rc.local??? what kind of errors do you get on restart of apache? |
ARGH.
The Listen directive is just fuggin broke I think. |
Quote:
Just list the IPīs for Listen 123.123.123.123:80 Listen 124.124.124.124:80 Listen 125.125.125.125:80 NameVirtualHost 123.123.123.123 NameVirtualHost 124.124.124.124 NameVirtualHost 125.125.125.125 and use [VIrtualHost 123.123.123.123] That will defenitely work Listen is for the listen at which IPīs and to which ports......It is not VirtualHost related until you assign the IPīs in a VirtualHost directive DynaMite :2 cents: |
you can also do Listen *:80
Listen is more if you donīt want Apache to listen to a specific IP address then you list the ones that you want and exclude the IPīs that you donīt want it to listen to. DynaMite |
Dyna Knows the Unix :))
|
Quote:
I was looking for you on ICQ earlier Dyna.. sec I'll msg you now. But theres a real problem with the Listen directive.. getting funky errors. |
Quote:
I'm getting errors like: [crit] (49)Can't assign requested address: make_sock: could not bind to address 11.22.33.44 port 80 (And nothing else appears to be bound to 80.) ie... on freebsd# sockstat | grep 80 gets ya nothin. |
Hit me up on ICQ and Iīll help you out......wonīt take longer than
a few seconds to fix this :-) DynaMite 370820 |
Most likely you have a conflicting Bind line in your apache conf.
Those 2 interact with eachother. DynaMite :thumbsup |
Quote:
|
Quote:
|
hmmm the seconds got minutes and minutes got half an hour and
the problem is not fixed.........really weird problem which turned out not to be a simple config error. Damn I hate it when this happens.....:( DynaMite |
Quote:
Yeah thanks much for taking the time Dyna. :thumbsup I know your the spanish king of all that is Unix... but I think maybe this is a bug that the Apache team might need to resolve. |
Quote:
doing......let me know what comes out.....it bugs me when I donīt know why things are not working......I wonīt be able to sleep now. Luckily I just woke up :1orglaugh DynaMite |
All times are GMT -7. The time now is 09:39 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123