GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   UNIX / APACHE masters? -- Listen Directive? (https://gfy.com/showthread.php?t=111282)

goBigtime 02-26-2003 01:12 AM

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.

sextoyking 02-26-2003 01:22 AM

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?

goBigtime 02-26-2003 02:27 AM

ARGH.

The Listen directive is just fuggin broke I think.

ServerGenius 02-26-2003 03:05 AM

Quote:

Originally posted by goBigtime
ARGH.

The Listen directive is just fuggin broke I think.

The Listen directive has nothing todo with VirtualHost
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:

ServerGenius 02-26-2003 03:06 AM

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

sextoyking 02-26-2003 03:07 AM

Dyna Knows the Unix :))

goBigtime 02-26-2003 03:08 AM

Quote:

Originally posted by DynaSpain
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


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.

goBigtime 02-26-2003 03:12 AM

Quote:

Originally posted by DynaSpain
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

^^ That is EXACTLY what I'm trying to do. But the Listen directive isn't being very cooperative.

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.

ServerGenius 02-26-2003 03:15 AM

Hit me up on ICQ and Iīll help you out......wonīt take longer than
a few seconds to fix this :-)

DynaMite 370820

ServerGenius 02-26-2003 03:17 AM

Most likely you have a conflicting Bind line in your apache conf.
Those 2 interact with eachother.

DynaMite :thumbsup

goBigtime 02-26-2003 03:18 AM

Quote:

Originally posted by DynaSpain
Hit me up on ICQ and Iīll help you out......wonīt take longer than
a few seconds to fix this :-)

DynaMite 370820

Not getting through... ICQ me

goBigtime 02-26-2003 03:19 AM

Quote:

Originally posted by DynaSpain
Most likely you have a conflicting Bind line in your apache conf.
Those 2 interact with eachother.

DynaMite :thumbsup

No bind lines.

ServerGenius 02-26-2003 04:07 AM

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

goBigtime 02-26-2003 04:09 AM

Quote:

Originally posted by DynaSpain
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


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.

ServerGenius 02-26-2003 04:11 AM

Quote:

Originally posted by goBigtime



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.

Anytime man.....you got your shit together and know what youīre
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