• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

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



0
paries
Asked:
paries
  • 2
  • 2
1 Solution
 
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
 
GranModCommented:
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now