Setting up HTTPS in Apache with Linux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Setting up HTTPS in Apache with Linux
# 1  
Old 07-18-2011
Setting up HTTPS in Apache with Linux

I have recently setup a HTTP server using Apache.

This was my first install of Apache, so I am very new to it.

What I would now like to do is setup HTTPS for my server.
Unfortunately, the official Apache 2.2 manual doesn't cover setting up HTTPS, and using Google search engine I have found tutorials using modified versions of Apache, which are no use for me as I chosen to use the official release.

I am hoping someone can tutor me on how to achieve serving HTTPS with Apache 2.2.19.

I ask the tutor gives instructions that are only relevant to setting up HTTPS.
I have found allot of tutorials give examples, then go on to say 'well this can also be done by doing da da da.. but this can be covered in another tutorial.'. That just confuses the hell out of me.
After achieving HTTPS, I will be all ears for recommendations and other topics related (or not related) to HTTPS.

If the tutor will be showing reference code, I ask that the reference code be from a default file apart of official Apache 2.2.xx release only. This will eliminate inconsistency.

Some information that might be of help to the tutor:
I am using the Ubuntu 10.04.1 LTS distribution of GNU/Linux and Apache 2.2.19. I serve two virtual hosts.
I have been using GNU/Linux for a year, understand the fundamentals of IP and have ran a HTTP server under Windows for years.
# 2  
Old 07-18-2011
In a nut shell, here are the activities.

1. Make and install the apache with --enable-ssl
2. Edit the httpd-ssl.conf with certificate details
[ You can either create a self signed certificate or get a certificate from Verisign/Thwarte etc]
You have to make the certificate chain with .pem format files and include the path in https-ssl.conf
3. Make sure the Include conf/extra/httpd-ssl.conf is uncommented in the httpd.conf
4. Make sure the following Block is uncommented

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
# 3  
Old 07-18-2011
Hi Dennis,

Thanks heaps for your information!

I understand instruction 1 & 3, but the rest do not make sense to me.
Could you explain instruction 2 & 4 in more detail?

2: What certificate?
4: I don't know which file that block resides in.

Last edited by SSL; 07-18-2011 at 06:24 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Apache - tcpdump get HTTP and HTTPS Headers

Hello I googled for "tcpdump view HOST http headers" -- that fine However can we do same for HTTPS like after the HTTPS gets decrypted by Apache ? I think this is legitimate on the server where the site is hosted since at some point the Apache itself needs to get the HOST patrameter in... (1 Reply)
Discussion started by: coolatt
1 Replies

2. Solaris

Need suggestion:- Failed HTTPS transfer to https://supportfiles.sun.com/curl

Hi Guys, I have recently started reciving below Error message Failed HTTPS transfer to https://supportfiles.sun.com/curl whenever I run /usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q -v from all Servers. Looks like the SSL certificate as Expired. Whenever I type... (4 Replies)
Discussion started by: manalisharmabe
4 Replies

3. Web Development

redirect http to https in apache

i read thru a few article how to do it, but i could not get it to work the way i want it. vi ../httpd.conf Redirect permanent /dev https://servername/portal/ when i type servername, works fine. my goal is to type dev, and it takes me to https://servername/portal/ (4 Replies)
Discussion started by: lawsongeek
4 Replies

4. UNIX for Dummies Questions & Answers

http to https Apache, AllowOverride All receives 403 err htaccess

Hi new to the forum, I have a Apache server on CentOS which hosts a web site. I've set up the SSL which has been tested as I can access my website via http and https. I would like to redirect all browsers to use https instead of http. I have created the htaccess file which contains 'Allow... (3 Replies)
Discussion started by: Sai245
3 Replies

5. Web Development

Problem setting up apache

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use : http://localhost:8022/ in my browser. The problem is that I wanted to be able to acces it from somewere else through the internet. I read some instruction and help sites related to this problem, like :... (2 Replies)
Discussion started by: spiriad
2 Replies

6. UNIX for Dummies Questions & Answers

Implement https on apache 2.0.55

I have been trying to implement https auto-redirect for a particular links. I have three configuration file /etc/apache2/apache2.conf, /etc/apache2/sites-available/default, and /etc/apache2/sites-available/ssl. In /etc/apache2/sites-available/default file I added following script <IfModule... (13 Replies)
Discussion started by: kumarrana
13 Replies

7. UNIX for Dummies Questions & Answers

setting up ACL in Apache

Folks; How can i setup ACL in Apache so i can give a group of users (defined by their emails (all users under *@red.com) access to a web page? (10 Replies)
Discussion started by: moe2266
10 Replies

8. UNIX for Dummies Questions & Answers

Setting Last-Modified Bit in Apache

Hi, I have a co-worker that uses javascript code to generate the last-modified date on a file. The problem is our server does not properly send this date so javascript can display it. I know that it is better to use server-side scripting to generate this but she has already put it on multiple... (1 Reply)
Discussion started by: robbieg
1 Replies

9. UNIX for Dummies Questions & Answers

apache-ssl https-problem?

hi folks. i know that this is not a realī unix problem, itīs an apache-webserver problem, but maybe you can help me? i have installed apache & mod_ssl, done a certificate, and configured my server well, but apache only understands "http://servername", not "https://servername". any ideas? ... (1 Reply)
Discussion started by: loitschix
1 Replies
Login or Register to Ask a Question