Re: apache2 and ssl



On Thu, 2006-02-02 at 10:00 -0700, Ed wrote:
I'm following along with a book called PHP and MySQL Web Development
(2003) and doing some sanity testing it recommends.

The step I'm on is to check to see if ssl is working and it says to
try:
https://localhost
or
http://localhost:443

to see if ssl is working.

When I try either of those two commands I get a 404 dialog from
mozilla
The connection was refused when trying to contact localhost:443

I did a
/usr/sbin/apache2ctl /startssl
and it returned that it is already running.

I see that there is a package called apache-ssl but no apache2-ssl.

I just got throught purching all the apache stuff and keeping apache2
so I don't think I want to install apache-ssl.

ssl is in the apache2 package. you need to enable it in your
sites-available config files.

for me, i did the following:

# /etc/apache2/sites-available/site
NameVirtualHost *:80
<VirtualHost *:80>
standard apache stuff
</VirtualHost>



# /etc/apache2/sites-available/site-ssl
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

standard apache stuff
</VirtualHost>



# /etc/apache2/ports.conf
Listen 80
Listen 443


-matt zagrabelny


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RE: php4
    ... Mod_php4 only gets loaded if you define SSL. ... Of course I restarted apache after the install... ... # Based upon the NCSA server configuration files originally by Rob McCool. ... Not all browsers support this. ...
    (freebsd-newbies)
  • RE: php4
    ... Mod_php4 only gets loaded if you define SSL. ... Of course I restarted apache after the install... ... # Based upon the NCSA server configuration files originally by Rob McCool. ... Not all browsers support this. ...
    (freebsd-questions)
  • Re: without SSL
    ... The problem was that when I sought to access Webmin i got the message: This server is running in ssl mode. ... I assumed it was apache, not realizing that port 10000 took me to the Webmin server. ... To clear things up, apache2.2.4 apparently automatically compiles with SSL, but SSL is only active if it is configured with certificates etc. and probably needs an installation of OpenSSL. ... > samba config directly or via Webmin, but if you really wanted to, you ...
    (freebsd-questions)
  • Re: without SSL
    ... >> that does bring up the Webmin page. ... I only use the server locally on my local network so I don't need the SSL. ... > Webmin uses it's own internal webserver, which is unrelated to Apache. ... > You haven't provided any specific information about your Samba config, ...
    (freebsd-questions)
  • Re: Multiplexing IPs For Apache
    ... pointed foo, baz, and nuz to public.bar.com. ... or even a NATing redirect that is based on *the http header* rather than ... would mean that SSL is badly broken). ... single IP address with Apache itself. ...
    (comp.unix.bsd.freebsd.misc)