0
我按照有关如何在服务器上部署rails应用程序的说明。已在服务器上安装Phusion Passenger,但apache2未安装在/etc/apache2/
我做了以下内容:
sudo gem install passenger
passenger-install-apache2-module
一切成功为止。但接下来的指令,他用:
nano /etc/apache2/sites-enabled/000-default
问题是存在等没有apache2的目录。因此,我不知道该文件我要坚持这个信息是:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.mywebsite.com
DocumentRoot /var/www/mywebsite/public
<Directory /var/www/mywebsite/public>
Options Indexes FollowSymLinks -MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
感谢任何回应。