无效的命令' PassengerAppRoot'

时间:2017-11-18 06:16:51

标签: node.js apache2 passenger

我收到错误 无效的命令' PassengerAppRoot',可能拼写错误或由未包含在服务器配置中的模块定义

设置Node js project on AWS server.

的乘客时的

sudo /usr/bin/passenger-config validate-install
What would you like to validate?
Use <space> to select.
If the menu doesn't display correctly, press '!'

 ‣ ⬢  Passenger itself
   ⬡  Apache

-------------------------------------------------------------------------

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... ✓

Everything looks good. :-)

What would you like to validate?
Use <space> to select.
If the menu doesn't display correctly, press '!'

   ⬢  Passenger itself
 ‣ ⬡  Apache

-------------------------------------------------------------------------

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... ✓

Everything looks good. :-)

perb.conf

<VirtualHost *:80>
    ServerName ip_address

    # Tell Apache and Passenger where your app's code directory is
    DocumentRoot /var/www/html/perb/public
    PassengerAppRoot /var/www/html/perb/

    # Tell Passenger that your app is a Node.js app
    PassengerAppType node
    PassengerStartupFile app.js

    # Relax Apache security settings
    <Directory /var/www/html/perb/public/>
      Allow from all
      Options -MultiViews
      #Uncomment this if you're on Apache >= 2.4:
      #Require all granted
    </Directory>
</VirtualHost>

任何帮助将不胜感激。

0 个答案:

没有答案