Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th September 2007, 09:01 PM
jb8578 Offline
Registered User
 
Join Date: Oct 2006
Posts: 7
FC7 SSL not working and apache wont start

I have FC7, apache and mod_ssl installed. I am running 3 virtual sites.
Site1 and Site3 i want on port 80, Site2 i want on SSL 443.

Apache runs but loads the localhost certs on Site2 with this config.

If i comment the localhost certs in ssl.conf and uncomment the site2 certs, apache fails.

Obviously i want apache to load the correct certs, but can't understand why its failing. This is my first time trying to get SSL & Apache to work. Thanks for any help.


httpd.conf partial, IP is the same for all ( i left out the logs and alias entries for the virtual hosts)
----------------------

Listen IP:80

Include conf.d/*.conf
#loads ssl.conf

NameVirtualHost IP:80
NameVirtualHost IP:443

<VirtualHost IP:80>
ServerName www.site1.com:80
DocumentRoot /var/www/html/www.site1.com
</VirtualHost>


<VirtualHost IP:443>
ServerName www.site2.com:443
DocumentRoot /var/www/html/www.site2.com
SSLCertificateFile /etc/pki/tls/certs/www.site2.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/www.site2.com.key
</VirtualHost>

<VirtualHost IP:80>
ServerName www.site3.com:80
DocumentRoot /var/www/html/www.site3.com
</VirtualHost>



SSL.CONF

------------------------------------
LoadModule ssl_module modules/mod_ssl.so
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLRandomSeed startup file:/dev/urandom 256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin
<VirtualHost _default_:443>
DocumentRoot "/var/www/html/www.site2.com"
ServerName www.site2.com:443
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
#SSLCertificateFile /etc/pki/tls/certs/www.site2.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
#SSLCertificateKeyFile /etc/pki/tls/private/go.www.site2.com.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

Last edited by jb8578; 20th September 2007 at 09:03 PM.
Reply With Quote
Reply

Tags
apache, fc7, ssl, start, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache wont start (but I've read all the other posts and mines is a little different) TheChihuahua Servers & Networking 9 6th August 2006 10:35 AM
weird screen colors- x wont start- cant get video card working- livna ati frglx rpm nkoplm Hardware & Laptops 3 19th May 2006 09:56 AM
Anaconda dont start in graph mode! First boot wont start after installation in text m dml Installation and Live Media 4 12th February 2006 11:21 PM
FC3 Apache wont start liderbug EOL (End Of Life) Versions 6 3rd March 2005 04:19 AM
Apache in fc3 wont start with a partition mnotgninnep Servers & Networking 2 13th December 2004 11:06 PM


Current GMT-time: 01:24 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat