ivaldi / brimir

Email helpdesk built using Ruby on Rails and Zurb Foundation
http://getbrimir.com
GNU Affero General Public License v3.0
1.38k stars 299 forks source link

Installing Brimir with apache #432

Closed madd86 closed 6 years ago

madd86 commented 6 years ago

Instructions aren't clear on how to deploy the app with apache.

I've made a new conf with the following configuration:

Listen 1010
<VirtualHost *:1010>
    #ServerName example.com
    #ServerAlias www.example.com
    #ServerAdmin webmaster@localhost
    DocumentRoot /home/brimir/public
    RailsEnv production
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    <Directory "/home/brimir/public">
        Options FollowSymLinks
        Require all granted
    </Directory>
</VirtualHost>

And added it with

a2ensite

It added alright, but when I navigate to it I get 403 Forbidden

Could anyone shed a little light here, please?

Edit

Acording to another comment on issues, I used the following conf:

Listen 1010
<VirtualHost *:1010>
    #ServerName yourserver.com

    # Tell Apache and Passenger where your app's 'public' directory is
    DocumentRoot /home/brimir/public

    PassengerRuby /usr/bin/ruby2.3

    # Relax Apache security settings
    <Directory /home/brimit/public>
      Allow from all
      Options -MultiViews
      # Uncomment this if you're on Apache > 2.4:
      Require all granted
    </Directory>
</VirtualHost>

Results are still the same, 403 Forbidden.

madd86 commented 6 years ago

Managed to fix it.

Now I can access my webserver but I can the following:

We're sorry, but something went wrong.

madd86 commented 6 years ago

Opening a new ticket