LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2004, 07:12 AM   #1
John Micheal
Member
 
Registered: Apr 2004
Location: Germany
Distribution: RedHat 9
Posts: 38

Rep: Reputation: 15
Unhappy Apache SSL problem , please help


Dear all,

i am running RedHat 9 , it have RPMs for Apache 2 , i already installed them now i am willing to start the SSL configuration , the SSL RPM is already installed , it also offered me certification file for test .

i started to add the following to httpd.conf file


<IfDefine Have_SSL>
<VirtualHost 10.0.0.1:443>
DocumentRoot /etc/httpd/secure
ServerName www.itpro.com
#ServerAlias domainname.com
ServerAdmin admin@domainname.com
ErrorLog /home/test/error_log
TransferLog /home/test/access_log
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
</IfDefine>

and i have created a file named home.html under /etc/httpd/secure

then i started the apache with : apachectl startssl

when i am testing it , when i try to connect to
https://10.0.0.1
it send the certifaction messege to me which i have to accept first so i can go forward , that is really perfect i accept it and it show me the apache test page . PERFECT

the problem:
=========
when i try https://10.0.0.1/home.html , it say page not found

i will really getting mad
it sent me the cerification messege so it seem that the configuration is right but when i try to connect to any page under the DocumentRoot directory it say { page not found }

can anyone help please ????

or can anyone tell me how i can configure SSL for RedHat 9

Thanks
 
Old 10-30-2004, 09:33 AM   #2
neilman
Member
 
Registered: Oct 2004
Location: Northville, MI
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
You're sure you have /etc/httpd/secure/home.html in place? If so, try loading it again with your https URL, and when you get the 404 not found, head over to your error_log to see what that has to say. Another test to do, while the server is running, is to place the file home.html in the server's main DocumentRoot (the one defined outside of your VirtualHost directive) and then re-load. If it comes up, then your Apache server is looking there, instead.
 
Old 10-31-2004, 12:43 PM   #3
John Micheal
Member
 
Registered: Apr 2004
Location: Germany
Distribution: RedHat 9
Posts: 38

Original Poster
Rep: Reputation: 15
dear all ,
thanks alot for your kindly help ,
i foud the mistake when you use the command (( apachectl startssl )) it load the configuration from both the httpd.conf and a file names ssl.conf , so if you want to put your ssl configuration in the httpd.conf you only use (( apachectl start )) if you used the apachectl startssl you have to remove the ssl configuration to the ssl.conf file not in the httpd.conf file

thanks
 
  


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
Apache SSL Problem opiea Linux - Newbie 5 05-01-2005 08:32 PM
Apache SSL Problem carlg Linux - General 0 10-13-2004 12:02 PM
Problem Installing ssl support with Apache 2.0.50 kaplan71 Linux - Software 1 08-12-2004 01:20 AM
Problem Starting Apache with SSL -- URGENT kaplan71 Linux - General 0 02-09-2004 07:10 AM
Problem with apache SSL and PHP Donboy Linux - Software 3 10-30-2003 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration