LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mod-ssl connection refused (https://www.linuxquestions.org/questions/linux-networking-3/mod-ssl-connection-refused-328765/)

squeaks_27 05-31-2005 02:00 AM

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

bathory 05-31-2005 03:01 AM

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

saneax 05-31-2005 03:05 AM

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...

squeaks_27 05-31-2005 11:45 AM

:p 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!


All times are GMT -5. The time now is 11:13 PM.