代理反向Apache和adonis.js

时间:2019-05-27 19:54:29

标签: node.js apache adonis.js

我在adonis.js中有一个项目-node.js,我想将该项目与我从Laravel在apache中获得的其他项目一起部署,所以我将不使用Nginx,在文件000中有以下几行-default .conf,linux-ubuntu中的文件。

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory />
    Options -Indexes +FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
    Require all granted
</Proxy>

<Location /appadonis>
    ProxyPreserveHost On
    ProxyPass http://localhost:3333
    ProxyPassReverse http://localhost:3333
</Location>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined

但是,当通过url localhost / appadonis进入应用程序时,它无法识别路由或CSS文件

  

http:// //localhost/style.css net :: ERR_ABORTED 404(未找到)

文件路径无效,因为在放置项目的任何路由时都显示404找不到

0 个答案:

没有答案