我有问题与Apacheconfiguration,通常是在几分钟内完成,但这让我感到困惑,为什么它不会工作。
我使用LetsEncrypt自签名证书进行testing,使用以下教程: https ://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in- Ubuntu的16-04
然后我创build了Apacheconfiguration(注意,添加“绕过字符代码)
<“VirtualHost *:80
ServerName website.org ServerAlias www.website.org ServerAdmin [email protected] DocumentRoot /var/aegir/hostmaster-7.x-3.11/sites/website.org/ ErrorLog ${APACHE_LOG_DIR}/website.org_error.log CustomLog ${APACHE_LOG_DIR}/website.org_access.log combined
<“/虚拟主机>
<“VirtualHost *:443>”
ServerAdmin [email protected] ServerName website.org DocumentRoot /var/aegir/hostmaster-7.x-3.11/sites/website.org/ ErrorLog ${APACHE_LOG_DIR}/website.org_error.log CustomLog ${APACHE_LOG_DIR}/website.org_access.log combined SSLEngine on SSLCertificateFile /etc/apache2/ssl/website.org.crt SSLCertificateKeyFile /etc/apache2/ssl/website.org.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0
<“/虚拟主机>
问题是,没有HTTP的页面正常打开,但在https上的index.html即时通讯获取默认的Apache页面,并存在每一个其他页面我得到错误500。
什么可能导致这个问题?
TIA