Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd July 2009, 15:32
wintertong wintertong is offline
Junior Member
 
Join Date: Feb 2009
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do you assign a SSL in Apache OpenSSL?

Hi,

I am running apache 2.2 and I have a SSL certificate that I bought through Enom.

I have the apache entry setup in the httpd-vhost.conf file as per below:

<VirtualHost 77.92.70.252:80>
ServerAdmin support@s2o.co.uk
DocumentRoot /opt/lampp/htdocs/pineapple
ServerName www.pineappleshoes.com
ServerAlias pineappleshoes.com
ErrorLog /var/log/pineapple-error_log
CustomLog /var/log/pineapple-access_log common
</VirtualHost>

Just in case you want to see that the site exists you will need to change your host file as the domain name is not pointing at the server yet.

I have done some reading and thought that this would work by inserting this into the httpd-ssl.conf file.

<VirtualHost 77.92.70.252:443>
ServerAdmin support@s2o.co.uk
DocumentRoot /opt/lampp/htdocs/pineapple
ServerName www.pineappleshoes.com
ServerAlias pineappleshoes.com
ErrorLog /var/log/pineapple-error_log
CustomLog /var/log/pineapple-access_log common
SSLEngine on
SSLCertificateFile /opt/lampp/etc/ssl.crt/pineappleshoes.crt
SSLCertificateKeyFile /opt/lampp/etc/ssl.key/pineappleshoes.key
</VirtualHost>

However this does not work and apache will not restart.

Can anyone help me?

Regards Gareth
Reply With Quote
Sponsored Links
  #2  
Old 23rd July 2009, 13:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Any errors in Apache's error log?
Did you configure Apache to listen on port 443?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
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
problems with suexec gobokster Installation/Configuration 7 7th May 2009 13:33
How to assign a SSL certificate using apache on linux wintertong HOWTO-Related Questions 7 27th March 2009 14:10
SSL "connection interrupted" apache not listening on 443 yuro Installation/Configuration 10 28th October 2008 14:42
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Unbearably slow access speeds CombatGod Installation/Configuration 5 30th May 2006 16:31


All times are GMT +2. The time now is 18:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.