On 2004.02.20, Taguchi Takeshi <[EMAIL PROTECTED]> wrote:
> Thanks, Dossy.
>
> I've executed nsd as following:
>
> # cd /usr/local/aolserver
> # bin/nsd -ft config.tcl -u www -g www -b 10.0.0.6:80
>
> My config.tcl is: [snip]
Here's what's interesting from your config.tcl:
1 set httpport 80
2 set httpsport 8443
3 set hostname [ns_info hostname]
4 set address [ns_info address]
...
148 #
149 # Socket driver module (HTTP) -- nssock
150 #
151 ns_section "ns/server/${servername}/module/nssock"
152 ns_param port $httpport
153 ns_param hostname $hostname
154 ns_param address $address
I'm betting [ns_info address] is not returning 10.0.0.6, but some other
IP address on your box. To experiment, change line 4 to read:
set address 10.0.0.6
then try to start bin/nsd with the same command line you were using
before.
-- Dossy
> I've got following error.
>
> [20/Feb/2004:22:35:43][72901.134557696][-main-] Notice: prebind: bound: 10.0.0.6:80
...
> [20/Feb/2004:22:35:43][72901.134557696][-main-] Notice: driver: starting: nssock
> [20/Feb/2004:22:35:43][72901.134557696][-main-] Warning: prebind: closed unused:
> 10.0.0.6:80 = 3
> [20/Feb/2004:22:35:43][72901.134560768][-nssock:driver-] Notice: starting
> [20/Feb/2004:22:35:43][72901.134560768][-nssock:driver-] Fatal: nssock: failed to
> listen on 10.0.0.6:80: Permission denied
However, this DOES seem to indicate that [ns_info address] is returning
10.0.0.6 -- strange.
What OS are you running this on? You are starting bin/nsd as root,
right?
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.