所以我在我的职业生涯中设置了很多虚拟域,但由于某种原因,我无法加载 macdougall.ninja。我被难住了。网页错误显示:
内部错误 - 服务器连接终止
这是我的虚拟主机文件:
<VirtualHost *:80>
ServerName macdougall.ninja
ServerAlias www.macdougall.ninja
ServerAdmin webmaster@localhost
DocumentRoot /var/www/macdougall.ninja/public_html
ErrorLog /var/log/httpd/macdougall.ninja-error.log
CustomLog /var/log/httpd/macdougall.ninja-access.log combined
<Directory "/var/www/macdougall.ninja/public_html">
AllowOverride All
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.macdougall.ninja [OR]
RewriteCond %{SERVER_NAME} =macdougall.ninja
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} `[END,NE,R=permanent]
`
这是我的index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, user-scalable=yes">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
Apache 状态为活动。我正在加载其他网站。我已重新启动 Apache
操作系统=Centos7