In the EDIT SERVER page of Virtualmin, when I check off the "Enable SSL" box, it causes a syntax error that prevents Apache from restarting properly. Apache goes down and stays down, and when I try to restart Apache, I get the following:
[root@manticore ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 27 of /etc/httpd/conf.d/mywebsite.conf:
SSLCertificateFile: file '/home/myusername/ssl.cert' does not exist or is empty
[FAILED]
This happens regardless of whether or not a CR has been generated or a Cert installed.
When I vi /etc/httpd/conf.d/mywebsite.conf (the file with the reported syntax error), I see:
SuexecUserGroup "#663" "#554"
ServerName mywebsite
ServerAlias www.mywebsite
DocumentRoot /home/myusername/public_html
ErrorLog /home/myusername/logs/error_log
CustomLog /home/myusername/logs/access_log common
ScriptAlias /cgi-bin /home/myusername/public_html/cgi-bin
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
SuexecUserGroup "#663" "#554"
ServerName mywebsite
ServerAlias www.mywebsite
DocumentRoot /home/myusername/public_html
ErrorLog /home/myusername/logs/error_log
CustomLog /home/myusername/logs/access_log common
ScriptAlias /cgi-bin/ /home/myusername/cgi-bin/
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
SSLEngine on
SSLCertificateFile /home/myusername/ssl.cert
SSLCertificateKeyFile /home/myusername/ssl.key
~