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

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState