How to Set Up Apache With Rails
- 1). Open a console. On Windows, this is the Command Prompt. On Linux and Mac, this is the terminal.
- 2). Enter the following commands:
gem install passenger
passenger-install-apache2-module - 3). Open the Apache configuration file. The location of this file will be different depending on your operating system and installation of Apache. Add the following code. Make any necessary modifications and save the file.
<VirtualHost *:80>
ServerName www.mywebsite.com
DocumentRoot /webapps/mysite/public
<Directory /webapps/mysite/public>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>