我正在尝试在 Apache 中托管报告门户实例。我已经在 ec2 实例上安装了带有 docker 的 reportportal,它工作正常。现在我正在尝试将其托管在网络服务器中。我使用 apache 作为网络服务器。我遵循了这个https://linuxhint.com/install_apache_web_server_ubuntu/链接,我安装了 apache 并配置了虚拟主机。我的虚拟主机看起来像这样
<VirtualHost *:80>
ServerName x.xx.xx.xx
ServerAlias myhost.example.com
DocumentRoot /home/ubuntu/reportportal
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
我可以毫无问题地启动服务器,例如 sudo systemctl start apache2。在浏览器中,当我尝试导航到 myhost.example.com 时出现禁止错误
You dont have permission to access this resource
让我知道我们是否有任何其他适当的方式将其作为 webaplication 托管?