Re: [Hampshire] Apache2 SSL Install/Config on Ubuntu

Top Page

Reply to this message
Author: Richard Mace
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Apache2 SSL Install/Config on Ubuntu
On 15/02/07, Graham Bleach <graham@???> wrote:
> On 15/02/07, Richard Mace <richard.mace@???> wrote:
> > > As Vic said, specify which IP address(es) you want to listen on.
> > > Otherwise apache won't open port 443 on the IP address(es). Example:
> > >
> > > Listen 192.168.1.1:443
>
> Did you just use the example IP address I posted? If you use an IP
> address that is defined as an interface on your machine you might have
> better results :) It might help if you actually post the Listen line
> that you are using.


Apache now seems to reload fine, however, I still cannt connect over https?

My ssl file now reads:

Listen 192.168.2.3:443
NameVirtualHost 192.168.2.3:443
<VirtualHost 192.168.2.3:443>
        ServerAdmin webmaster@localhost


        DocumentRoot /var/www/opendoorit.co.uk/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/opendoorit.co.uk/administrator>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # Uncomment this directive is you want to see apache2's
                # default start page (in /apache2-default) when you go to /
                #RedirectMatch ^/$ /apache2-default/
        </Directory>


        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>


        ErrorLog /var/log/apache2/error.log


        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn


        CustomLog /var/log/apache2/access.log combined
        ServerSignature On


SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLink
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>


</VirtualHost>


> /sbin/ifconfig -a will list the current interfaces


richard@shuttle:~$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:30:1B:B0:A4:30
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::230:1bff:feb0:a430/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:113362270 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60506083 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:404676915 (385.9 MiB)  TX bytes:1334347030 (1.2 GiB)
          Interrupt:185


lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:71 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5228 (5.1 KiB)  TX bytes:5228 (5.1 KiB)


sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Any further ideas?

Richard