apache配置反向代理httpd-ssl文件报错
AH00526: Syntax error on line 138 of /etc/httpd/extra/httpd-ssl.conf:
SSLCertificateFile takes one argument, SSL Server Certificate file (’/path/to/file’ - PEM or DER encoded)
AH00526: Syntax error on line 138 of /etc/httpd/extra/httpd-ssl.conf:
SSLCertificateFile takes one argument, SSL Server Certificate file ('/path/to/file' - PEM or DER encoded)
网上大部分回答都是要把路径加引号,可是我路径加上双引号了还是报错,最后半天找到原因是因为
这句话后面有注释文档
类似这样的
SSLCertificateFile "/usr/local/apache/key/*.cer" #替换成你的证书文件路径
SSLCertificateKeyFile "/usr/local/apache/key/*.key" #替换成你的密钥文件路径
把注释去掉即可解决问题