LinuxQuestions.org
Review your favorite Linux distribution.
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 09-23-2011, 09:35 AM   #1
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
how to enable ssl in apache web server


Dear friends , i have created a apache web server and site is registered and doing well but it runs on port 80 , to make it secure i want to configure ssl in that apache server.
Please anybody tell me the procedure.
 
Old 09-23-2011, 09:51 AM   #2
linux2001
Member
 
Registered: Sep 2011
Posts: 32

Rep: Reputation: Disabled
Quote:
Originally Posted by mlnm View Post
Dear friends , i have created a apache web server and site is registered and doing well but it runs on port 80 , to make it secure i want to configure ssl in that apache server.
Please anybody tell me the procedure.
what's your ditribution.
http://library.linode.com/web-server...ides/fedora-14
http://www.linode.com/wiki/index.php..._SSL_in_Ubuntu
 
Old 09-23-2011, 03:55 PM   #3
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Original Poster
Rep: Reputation: Disabled
I am using rhel5 and my apache version is 2.2.3 please post the step by step settings to configure ssl.
 
Old 09-24-2011, 02:37 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
you follow some guides
- step-by-step-configuring-ssl-under-apache
- How to SETUP SSL Apache MODSSL
- Setting up an SSL server with Apache2
 
Old 09-24-2011, 02:45 AM   #5
linux2001
Member
 
Registered: Sep 2011
Posts: 32

Rep: Reputation: Disabled
1 - Edit /etc/httpd/conf.d/ssl.conf

check the mod_ssl is loaded

LoadModule ssl_module modules/mod_ssl.so

Check your document root

and the 2 line
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key

Code:
<VirtualHost _default_:443>


        DocumentRoot /var/www
SSLEngine  on
LoadModule ssl_module modules/mod_ssl.so

 SSLCertificateFile    /etc/ssl/certs/server.crt
        SSLCertificateKeyFile /etc/ssl/private/server.key


</VirtualHost>
Restart httpd
Code:
#service httpd restart
with browser
https://127.0.0.1 or https://yourIP@

You can send me the httpd directory, i can edit it and return the modified file
 
  


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
[Centos] Apache web server - SSL for specific folder Black187 Linux - Server 2 04-20-2011 10:38 PM
Force SSL on Web Folders [APACHE] carlosinfl Linux - Server 4 09-30-2010 09:18 AM
Just added ssl to my apache web server... trist007 Linux - Newbie 1 01-07-2010 03:11 PM
LXer: APACHE web server and SSL authentication LXer Syndicated Linux News 0 09-05-2009 12:30 PM
Unable to Import SSL to Apache Web Server carlosinfl Linux - Server 5 09-15-2008 10:49 AM

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

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