Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I lost my mod_ssl on my debian machine. How can I get it back.

I accidently removed it from mods_available instead of mods_enable, and as it was a symlink I lost the file. Is it possible to get this back without ruining the configurations of apache?

Is there any libapache2-mod I can reinstall, in case please include how I remove + reinstall it.


share|improve this question
Restore a backup or a part from it? – Lucas Kauffman Mar 15 '12 at 9:14
up vote 1 down vote accepted
 <IfModule mod_ssl.c>

   SSLRandomSeed startup builtin
   SSLRandomSeed startup file:/dev/urandom 512
   SSLRandomSeed connect builtin
   SSLRandomSeed connect file:/dev/urandom 512

   AddType application/x-x509-ca-cert .crt
   AddType application/x-pkcs7-crl    .crl

   SSLPassPhraseDialog  builtin

   #SSLSessionCache         dbm:/var/run/apache2/ssl_scache
   SSLSessionCache        shmcb:/var/run/apache2/ssl_scache(512000)
   SSLSessionCacheTimeout  300

   SSLMutex  file:/var/run/apache2/ssl_mutex
   SSLProtocol all -SSLv2


This should be Debian 6.0 like ssl.conf in /etc/apache2/mods-available

 LoadModule ssl_module /usr/lib/apache2/modules/

This should be Debian 6.0 like ssl.load in /etc/apache2/mods-available

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.