httpd rewrite removes proper ssl lines

floyd

Verified User
Joined
Mar 29, 2005
Messages
6,270
I have a site that uses ssl and the ip is owned by the user.

I ran:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

and the ssl lines that point to the sites certificate suddenly now pointed to the server certificate:

Code:
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

Any ideas?
 
To answer my own question, I had not used DirectAdmin to enable SSL and write the certificate files. I had done it manually through command line.

So now I wonder what the difference is? There must be another file that keeps this information so DA knows what to do when it does a rewrite.
 
Further information.

If you manually add the SSL info to the user's httpd file you have to also edit the domains/example.com.conf file so that "action=rewrite&value=httpd" does not write the user's httpd.conf file incorrectly.
 
Back
Top