【发布时间】:2010-07-30 21:45:33
【问题描述】:
我正在按照说明如何在服务器上部署 Rails 应用程序。
我做了以下事情:
sudo gem install passenger
passenger-install-apache2-module
到目前为止,一切都很成功。但接下来他使用的指令是:
nano /etc/apache2/sites-enabled/000-default
问题是 etc 中没有 apache2 目录。因此,我不知道我需要粘贴此信息的文件在哪里:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
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>
感谢您的任何回复。
【问题讨论】:
标签: ruby-on-rails ruby apache2 passenger