Apache doesn't autostart because vpn isn't up yet.

Posted by Col. Shrapnel on Server Fault See other posts from Server Fault or by Col. Shrapnel
Published on 2010-03-13T13:02:12Z Indexed on 2010/03/13 13:05 UTC
Read the original article Hit count: 321

Filed under:
|
|

I have a FreeBSD8 server, and VPN connection to my ISP. I use mpd5 and it works fine. A have an Apache server whch works fine, if I start it manually, after VPN is get up. But when I add it to rc.conf autostart, it fail to start, saying

(49) can't assign requested address: make_sock could not bind to address

I suppose it's because VPN isn't up yet and no IP address assigned to the interface which i set in the Listen directive in the httpd.conf. If i set Listen to the existing 127.0.0.1, it fail to serve wan requests.

Is there a solution, either to delay apache autostart or configure it some different?

© Server Fault or respective owner

Related posts about apache

Related posts about freebsd