Should be a simple httpd.conf question

Hello, i have a fedora 4 box with apache 2.0.54
i am using virtual host
i am using test.mydomain.com and consult.mydomain.com
i am trying to get ssl working for consult.mydomain.com
this is the part that is driving me crazy. there is no mention of SSL or 443 but i goto the URL of https://test.mydomain.com is goes to the docroot of test.unitnet.com

so in my httpd.conf i put in

NameVirtualHost xxx.xxx.xxx.3:443

<VirtualHost xxx.xxx.xxx.3:443 >
    ServerAdmin webmaster@mydomain.com
    ServerName consult.mydomain.com

    DocumentRoot /home/unitnetconsult

    JkMount       /*.jsp worker1
    JkMount       /servlet/* worker1
</VirtualHost>

if i go to https://consult.mydomain.com i get page can not be displayed
but if i goto  http://consult.mydomain.com:443 it goes to the correct place

thanks for any help

Randy



pariesAsked:
Who is Participating?
 
GranModCommented:
PAQed with points refunded (500)

GranMod
Community Support Moderator
0
 
giltjrCommented:
My quick 5 second answer is.  

Try removing the :443 off of the host names.  What you have coded says that the normal port for HTTP communcations with host consult.mydomain.com is port 443.
0
 
giltjrCommented:
Opps, must must have 443 (I'm brain dead today).  Do you have mod_ssl loaded?  Is Apache setup to do SSL properly?

If you do netstat -anA inet is something listening on port 443?
0
 
pariesAuthor Commented:
if i go to https://consult.mydomain.com i get page can not be displayed

but if i goto  http://consult.mydomain.com:443 it goes to the correct place

RP
0
 
pariesAuthor Commented:
i need to add these , now it works

SSLCertificateFile /etc/httpd/conf/new.cert.cert
SSLCertificateKeyFile /etc/httpd/conf/new.cert.key
SSLEngine on


I also generated a generic key
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.