Tux listen on different IP or Port

Chris Davies mcd at daviesinc.com
Wed Feb 8 16:21:29 UTC 2006


bear in mind that SMP/SMT will have listeners on /proc/net/tux/1, etc 
depending on the number of cpus

Max Helmet wrote:
> Hi Alex,
> 
> You probably altered /proc/net/tux/0/listen/0 while TUX was running. I think
> TUX needs to be stopped when you alter the file.
> 
> I just tried the following, and it worked on my end:
> 
> $ /etc/init.d/tux stop
> $ echo "http://192.168.0.198:8080" > /proc/net/tux/0/listen/0
> $ /etc/init.d/tux start
> $ netstat -lt
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> tcp        0      0 192.168.0.198:webcache  *:*                     LISTEN
> 
> Regards,
> Maximilian
> 
> 
>>Dear Max,
>>
>>I want to run Tux on one IP to serve up soley static content (images
>>and so on). I am under the impression that this will give me greater
>>performance than thttpd.
>>
>>I want to run Apache on another IP to server up PHP websites.
>>
>>echo "http://x.x.x.x:80" > /proc/net/tux/0/listen/0
>>
>>Indeed changes that file, but when I restart tux it is still listening
>>on all IP addresses bound to that server!
>>
>>If I change the port it just ignores it and remains bound to port 80.
>>
>>With many thanks,
>>
>>Alex
> 
> 
> _______________________________________________
> tux-list mailing list
> tux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/tux-list
> 
> !DSPAM:43ea1a04219593045745281!
> 




More information about the tux-list mailing list