PDA

View Full Version : httpd rewrite removes proper ssl lines



floyd
02-16-2010, 12:30 PM
I have a site that uses ssl and the ip is owned by the user.

I ran:

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:


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

Any ideas?

floyd
02-16-2010, 01:16 PM
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.

floyd
03-03-2010, 05:47 AM
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.