Set up a secure virtual host in Apache


Setting up an https server in Apache is easy. This tutorial covers how to create and sign your ssl certificate as well as how to configure the web server.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Receive a free digital copy

mpcoc's picture

Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.


Hello I am trying to make

Anonymous's picture


I am trying to make Appache in secure mode but it is showing httpd service failed.

No, your mouse must be

Anonymous's picture

No, your mouse must be broken.

This really helped I too have something adding to this

Maverick's picture

Great tutorial!

Rick Malone's picture

I was wondering if you could also add a video on how to use password authentication with apache (.htaccess/.htpasswd or another method). I've had trouble with this in the past and I am sure others would find this useful as well.

Appache showing httpd failed in secure mode

Sarat Kumar Yadav's picture


I am trying to make Appache in secure mode but it is showing httpd service failed.


Elliot Isaacson's picture

Not sure why I forgot to link to the transcript this time... here it is:


Anonymous's picture

can't copy+paste the intructions? something wrong with my firefox?

about Copy-n-Paste comments

Anonymous's picture

You can't copy-paste from a video :)
Load up the transcript and copy-n-paste from there

One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix