已在服务器上安装Phusion Passenger,但apache2未安装在/etc/apache2/
问题描述:
我按照有关如何在服务器上部署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>
感谢任何回应。
答
Apache是独立的,不会与phusion乘客一起安装。你需要自己安装它,它取决于你的操作系统(看起来你是在一个Linux系统上),所以你可以在命令行尝试类似这样的操作:
apt-get install apache2