LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-19-2004, 02:24 PM   #1
Xixulon
LQ Newbie
 
Registered: Aug 2003
Location: Utrecht, Netherlands
Posts: 4

Rep: Reputation: 0
Apache2 SSL Config problem


Good morning!

don't know if this thread is posted in the right location, also have found several similar questions about the same (i think) problem, but none answered to my satisfaction yet, so here we go:

i am trying to configure apache2 so that
http/sub.domain.com/ and
https/sub.domain.com/ both access the same code.
(urls slightly modified to prevent validation-problems)


i have installed apache2 correctly, with all the modules in place, started with the startssl option, generated valid keys, all according to the instructions given in other threads here and on other sites. apache2 starts without fail or even an errormsg in the log-files.

i have concluded therefore that it must be a vhost config problem.

parts of my conf:

Listen 80
Listen 443

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
ServerName sub.domain.com
DocumentRoot /document/root
</VirtualHost>

<VirtualHost *:443>
ServerName sub.domain.com
DocumentRoot /document/root

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/sub.domain.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/sub.domain.com.key
BrowserMatch "MSIE [1-4]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [5-9]" ssl-unclean-shutdown
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
</VirtualHost>

http works just fine, but trying to access a https-page gives me a "Cannot display page" like error (dunno the exact english version of the Dutch "pagina kan niet worden weergegeven" page.

Could somebody provide me with a typical config for multiple ssl-hosts under apache2, or at least a hint as to how to proceed?

Thanks!

Last edited by Xixulon; 10-19-2004 at 02:26 PM.
 
Old 10-19-2004, 04:11 PM   #2
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
this is a very easy, but also very tricky one... Hehehehe

Ill try to get you started:
In apache2 if i remember correctly, there is a directive that does an include of another configuration file to enable SSL.
In this configfile there is a virtualhost section. And this one also has the directive NameVirtualHost in it... Very irritating.
Try this first:
Disable that Include for SSL.conf and add the directives in your httpd.conf.

Second, if you want virtualhost with SSL, my experience is that it wont work with:
<VirtualHost *:443>

I had to set my (internal) IP address in it:

<VirtualHost 1.2.3.4:443>

Third:
Did you create the certificates, and configure your server to use these certificates???

As you see, t isn't too hard, but you are immediately confronted with several different options which could cause the non-working problem....

By the way, i could help you in dutch, if you want me to, but let others please take profit of our discussion (Although it could end up being completly useless )

Last edited by Satriani; 10-19-2004 at 04:13 PM.
 
  


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
apache2 - ssl : connection via ssl interrupted ldp Linux - Software 0 10-02-2005 09:07 AM
Apache2 and SSL problems Malibyte Linux - Software 1 07-09-2005 04:14 PM
compiling apache2 with SSL devfreak Linux - Software 1 05-22-2005 11:18 AM
Apache2 virtualHost config problem jglazner Linux - Software 3 04-01-2004 02:22 AM
Apache2 + SSL for the first time ridertech Linux - Newbie 0 02-14-2004 03:36 AM

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

All times are GMT -5. The time now is 07:56 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