Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-26-2003, 01:12 AM   #1
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
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.
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 01:22 AM   #2
sextoyking
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Location: Portland, OR.
Posts: 6,034
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?
__________________
ICQ: 52344098
--------------------------------------
50% Commissions on all Product Sales. http://www.wishing.com/money
sextoyking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 02:27 AM   #3
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
ARGH.

The Listen directive is just fuggin broke I think.
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:05 AM   #4
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
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
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:06 AM   #5
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
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
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:07 AM   #6
sextoyking
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Location: Portland, OR.
Posts: 6,034
Dyna Knows the Unix )
__________________
ICQ: 52344098
--------------------------------------
50% Commissions on all Product Sales. http://www.wishing.com/money
sextoyking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:08 AM   #7
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:12 AM   #8
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
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.
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:15 AM   #9
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Hit me up on ICQ and Iīll help you out......wonīt take longer than
a few seconds to fix this :-)

DynaMite 370820
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:17 AM   #10
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Most likely you have a conflicting Bind line in your apache conf.
Those 2 interact with eachother.

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:18 AM   #11
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 03:19 AM   #12
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
Quote:
Originally posted by DynaSpain
Most likely you have a conflicting Bind line in your apache conf.
Those 2 interact with eachother.

DynaMite
No bind lines.
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 04:07 AM   #13
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
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
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 04:09 AM   #14
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
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.

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.
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2003, 04:11 AM   #15
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Quote:
Originally posted by goBigtime



Yeah thanks much for taking the time Dyna.

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

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright Đ 2000- Jelsoft Enterprises Limited.