Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few SSL Virtualhosts and they work fine until I restart the box. Then all of the SSL virtualhosts point to the directory listed in default-ssl. If I restart Apache2 service manually everything works as intended. any ideas?

share|improve this question
Are the IP addresses of those virtualhosts already assigned to an interface when Apache starts? – Lekensteyn Apr 29 '12 at 9:39
the interface is set manually – Ryan Apr 29 '12 at 9:46

It sounds like that the IP addresses of the virtual hosts are not yet assigned when Apache starts. I suggest you to have a look at /var/log/apache2/error.log for any errors and adjust the boot order of Apache and the assignment of addresses.

share|improve this answer
I dont see any errors listed in the log :( only [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations – Ryan Apr 29 '12 at 10:24
What about /var/log/boot.log or even /var/log/syslog? – Lekensteyn Apr 29 '12 at 10:26
nothing in boot.log, and nothing noticable in syslog from apache – Ryan Apr 29 '12 at 10:36
Please check the sudo netstat -tlpn output after rebooting. Where do you set additional IP addresses? /etc/network/interfaces? – Lekensteyn Apr 29 '12 at 10:38
The system has just one IP set from the control panel on the desktop. tcp 0 0* LISTEN 1231/apache2 tcp 0 0* LISTEN 1231/apache2 – Ryan Apr 29 '12 at 10:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.