LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2004, 04:26 AM   #1
The Insider
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Apache with ssl


Hi,

First of all sorry if this is the incorrect forum but it seemed most appropiate as I am a newbie!!

Ok, trying to setup apache with ssl on Red Hat 9.0, I have recieved my Thawte cert already. I was given instructions on what to do to get apache running with ssl support, I have followed them to a tee but have had no joy. When I test the default configuration that comes with the installed rpm's of apache and mod_ssl that come with the CD I am able to see localhost on http and localhost on https I try and change the ssl.conf, the only changes I make are the following:

<VirtualHost domain name:443>

# General setup for the virtual host
DocumentRoot "/var/www/html"
ServerName domain name:443
ServerAdmin you@your.address
ErrorLog logs/ssl/ssl_error_log
TransferLog logs/ssl/ssl_access_log

# Server Certificate:
# Point SSLCertificateFile at a PEM encoded certificate. If
# the certificate is encrypted, then you will be prompted for a
# pass phrase. Note that a kill -HUP will prompt again. A test
# certificate can be generated with `make certificate' under
# built time. Keep in mind that if you've both a RSA and a DSA
# certificate you can configure both in parallel (to also allow
# the use of DSA ciphers, etc.)
SSLCertificateFile /etc/httpd/conf/ssl.crt/name of thawte cert
#SSLCertificateFile /etc/httpd/conf/ssl.crt/server-dsa.crt

# Server Private Key:
# If the key is not combined with the certificate, use this
# directive to point at the key file. Keep in mind that if
# you've both a RSA and a DSA private key you can configure
# both in parallel (to also allow the use of DSA ciphers, etc.)
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/name of key I got with thawte cert
#SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server-dsa.key

I add the thawte cert and the key into the appropiate directories. I do not touch the httpd.conf file, when I restart apache it restarts ok. I am able to go to localhost on http fine, but when I try and go to localhost on https I get the following error in my browser "The connection to localhost has terminated unexpectedly. Some data may have been transferred"

When I check the log files the following is in there:
[Tue Mar 02 15:13:50 2004] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/
[Tue Mar 02 15:13:53 2004] [error] [client 127.0.0.1] Invalid method in request !F!!

I have done a bit of googling on this and the problem seems to be related to the Virtual host settings, however I can not see where I am going wrong.

Thanks
Gareth
 
  


Reply



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
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
apache + ssl help! aqoliveira Linux - Software 3 04-18-2005 12:36 PM
apache and apache-ssl questions merana Debian 4 03-10-2005 10:10 AM
Apache and SSL PcHammer Linux - Software 3 02-18-2005 02:33 PM
ssl on apache Finlay Linux - Networking 3 03-20-2003 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 PM.

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