Enabling SSL on apache2 causes address already in use error

Posted by durron597 on Pro Webmasters See other posts from Pro Webmasters or by durron597
Published on 2012-12-03T20:23:02Z Indexed on 2012/12/03 23:24 UTC
Read the original article Hit count: 811

Filed under:
|
|

My server works just fine on a normal apache2 install. Now, I'm trying to install subversion on this server using this guide: http://alephzarro.com/blog/2007/01/07/installation-of-subversion-on-ubuntu-with-apache-ssl-and-basicauth/

I get the following error:

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443

When I do grep -rH 443 /etc/apache2/, I get results in two files: ports.conf and sites-enabled/default-ssl

I tried it both with and without that last Listen 443 commented out, here's ports.conf:

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    NameVirtualHost *:443
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

#Listen 443

And the first few lines of default-ssl

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerAdmin webmaster@localhost
        SSLEngine on
        SSLCertificateFile /this/isnt/relevant/probably.pem
        SSLProtocol all
        SSLCipherSuite HIGH:MEDIUM

And netstat -an --inet | grep 443 returns nothing.

Any ideas?

© Pro Webmasters or respective owner

Related posts about ssl

Related posts about apache2