LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2005, 02:00 AM   #1
squeaks_27
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Slackware, Debian, Red Hat
Posts: 34

Rep: Reputation: 15
mod-ssl connection refused


i just installed apache1.3 on my debian sarge box (no gui, sshing into it) and was able set it up no problem. i installed mod-ssl (apt-get), ran mod-ssl-makecert to create my certificate, and added the parts to http.conf that was suggested on http://www.debian-administration.org/articles/31

when i tried loading the page, http://ipaddr no longer works and i get the same error with https://ipaddr: "the connection was refused"

i ran
Code:
openssl s_client -connect localhost:443 -state -debug
and it showed my ssl cert fine.

here's my virtual host code section (where i suspect the problem is):
Code:
<VirtualHost *:81>
        ServerAdmin webmaster@jordan.com
        DocumentRoot /var/www/sql-ledger
        ServerName 192.168.1.105
</VirtualHost>


<VirtualHost localhost:443>

<IfModule mod_ssl.c>
        SSLEngine on
        SSLCertificateFile    /etc/apache/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/apache/ssl.key/server.key
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</IfModule>

        ServerAdmin webmaster@jordan.com
        DocumentRoot /var/www/sql-ledger
        ServerName 192.168.1.105
</VirtualHost>
any help is greatly appreciated, thanks in advance
 
Old 05-31-2005, 03:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
"the connection was refused"
That means that apache is not running. Check the apache error-log to find out why it dosn't start

Regards
 
Old 05-31-2005, 03:05 AM   #3
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
your problem could be some confusion in the config file....

what I can understand..
you need to have site which also has ssl... why not make the default site with
DocumentRoot /var/www/sql-ledger
and remove the Virtual Host declaration with port 81...

next...
make the SSL virtualhost as
<VirtualHost _default_:443>

rest is OK..

so that means http:/ipadr works and also htps://ipadr works...
check also that on /var/www/sql-ledger you have permissions


Also if the problem is not resolved... post the output from error_log...
 
Old 05-31-2005, 11:45 AM   #4
squeaks_27
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Slackware, Debian, Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
sorry guys, i tried your changes, checked the log file, still wasn't working, then i realized...

I forgot to forward port 443 in my router (i did for my other box, but forgot to do it this time)... my bad.

Things work like a charm now, thanks for your input!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod ssl on Redhat dvong3 Linux - Newbie 1 07-19-2005 12:22 PM
Apache + Mod SSL abhijeetudas Linux - Software 0 01-05-2005 02:34 PM
SSL connection refused under Fedora and Mandrake russell9999 Linux - Networking 0 10-13-2004 09:29 AM
Apache + Mod SSL driving me bonkers hjunk86 Linux - Software 7 01-10-2004 12:36 PM
Apache + Mod SSL driving me bonkers hjunk86 Linux - Software 1 01-09-2004 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration