How to Set Up Apache With Rails

104 22
    • 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>

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.