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>
感謝任何迴應。