VPS 服务器虚拟主机出现 404 错误

VPS 服务器虚拟主机出现 404 错误

我正在尝试在我的 vps 服务器中创建虚拟主机,但我收到“HTTP 状态 404 - 未找到”。我的虚拟主机:

vi /etc/httpd/conf.d/demonstracao.itcmedbr.com.conf

<VirtualHost *:80>
        ServerName demonstracao.itcmedbr.com
        ServerAlias www.demonstracao.itcmedbr.com
        DocumentRoot /var/www/demonstracao.itcmedbr.com/html
    ErrorLog /var/www/demonstracao.itcmedbr.com/log/error.log

        CustomLog /var/www/demonstracao.itcmedbr.com/log/requests.log combined


        <Directory /var/www/demonstracao.itcmedbr.com/html>
            Options -Indexes +FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>
        ProxyRequests off
        ProxyPreserveHost On
        ProxyPass / http://IPaddr:8081/demonstracao.itcmedbr.com/
        ProxyPassReverse / http://IPaddr:8081/demonstracao.itcmedbr.com/
</VirtualHost>

httpd.conf:

ProxyPass               /demonstracao.itcmedbr.com      http://localhost:8081/demonstracao.itcmedbr.com
ProxyPassReverse        /demonstracao.itcmedbr.com      http://localhost:8081/demonstracao.itcmedbr.com

我将非常感激您的帮助。谢谢。

相关内容