Hello, I need to run multiple instancess of lighty with different configuration files. Did some search but didn't find anything about it. I copied lighty init script and modified it: changed the pid, and added the following line: LIGHTY_OPTS="-f /etc/lighttpd/lighttpd1.conf" However when trying to run lighttpd1 (the second instance of lighty) I get the following error: (network.c.300) can't bind to port: 10.10.10.5 80 Address already in use. This adress is in fact already in use by the first instance of lighty, however it should not try to bind to that adress as I added the following line to lighttpd1.conf : server.bind = "10.10.10.6" Could anyone tell me what I'm doing wrong? With regards
Thank you falko for the reply. I figured it out, the config file of the first instance contained a reference to the second ip adress, which made it to bind to both. Now I can start the second instance of lighty, and it's reachable. However it still uses the first IP for outbound traffic. Any idea on how can I force it to use eth0:0 for both in and out traffic? With regards
Thank you falko for the reply. I figured it out, the config file of the first instance contained a reference to the second ip adress, which made it to bind to both. Now I can start the second instance of lighty, and it's reachable. However it still uses the first IP for outbound traffic. Any idea on how can I force it to use eth0:0 for both in and out traffic? With regards