fix error in httpd-virtual.conf
This commit is contained in:
parent
fc0573874b
commit
e0d77d647b
@ -68,7 +68,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
|||||||
"\\ \\ \\ \\ SSLCertificateChainFile \\/etc\\/apache2\\/pems\\/default.chain.pem\" /etc/apache2/virtual.conf.tmp " +
|
"\\ \\ \\ \\ SSLCertificateChainFile \\/etc\\/apache2\\/pems\\/default.chain.pem\" /etc/apache2/virtual.conf.tmp " +
|
||||||
"); " +
|
"); " +
|
||||||
"done"),
|
"done"),
|
||||||
new ShellProcessor("for PEM in $( cat /etc/apache2/virtual.conf.tmp | grep SSLCertificateChainFile | cut -c24- ); do " +
|
new ShellProcessor("for PEM in $( cat /etc/apache2/virtual.conf.tmp | grep SSLCertificateChainFile | cut -c29- ); do " +
|
||||||
"ls $PEM >/dev/null 2>&1 || " +
|
"ls $PEM >/dev/null 2>&1 || " +
|
||||||
" sed -i \"/SSLCertificateChainFile.*${PEM:18:5}.chain.pem/d \" /etc/apache2/virtual.conf.tmp ; " +
|
" sed -i \"/SSLCertificateChainFile.*${PEM:18:5}.chain.pem/d \" /etc/apache2/virtual.conf.tmp ; " +
|
||||||
"done"),
|
"done"),
|
||||||
|
@ -16,8 +16,6 @@ NameVirtualHost {PAC_IP}:443
|
|||||||
<VirtualHost {PAC_IP}:443>
|
<VirtualHost {PAC_IP}:443>
|
||||||
|
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
SSLCertificateFile /etc/apache2/pems/default.pem
|
|
||||||
SSLCertificateChainFile /etc/apache2/pems/default.chain.pem
|
|
||||||
SSLCertificateFile /etc/apache2/pems/{PAC}.pem
|
SSLCertificateFile /etc/apache2/pems/{PAC}.pem
|
||||||
SSLCertificateChainFile /etc/apache2/pems/{PAC}.chain.pem
|
SSLCertificateChainFile /etc/apache2/pems/{PAC}.chain.pem
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user