Apache2 Service started twice
- by Relentless
My apache2 web-server starts twice and wont bind, so i have to do this:
sudo netstat -nap | grep 0.0.0.0:443
sudo kill -9 1243
sudo /etc/init.d/apache2 restart
Is there any way i can make a script out of the code above so that i can run automatically on start up?
I have Ubuntu 10.04, this happened after an update.
UPDATE:
ports.conf - Could this be cause it:
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
could it be listening to 443 twice? or do i need to add NameVirtualHost *:443