我正在使用Google Cloud Engine ruby堆栈,它在Debian 7上使用RVM和Passenger。按照Passenger配置手册后,当我导航到服务器根目录时,我只看到应用程序文件的目录。
这是/etc/apache2/apache2.conf
<VirtualHost *:80>
ServerName http://130.211.149.208
DocumentRoot /var/www/myapp
<Directory /var/www/myapp>
Allow from all
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
#Require all granted
</Directory>
</VirtualHost>
答案 0 :(得分:0)
想出来。问题是/var/www/myapp
应为/var/www/myapp/public