使用Apache2部署ReactJS:未启动apache

时间:2018-06-20 14:29:42

标签: apache apache2

根据其他一些文章,我为应用程序构建了以下Apache配置:

<VirtualHost *:80>
    ServeName testproject.localhost
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/testproject
    AllowOverride All
    SetEnv AEIRTU_HOME /usr/local/bin/testproject
    RewriteEngine On  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
    RewriteRule ^ - [L]
    RewriteRule ^ /index.html [L]
</VirtualHost>

我创建了/etc/apache2/sites-available/testproject.conf,然后:

$ sudo a2ensite testproject

尝试重新启动apache2时,我得到:

$ sudo /etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
 failed!

0 个答案:

没有答案