1

Topic: How to restore virtual host setup after installing Passenger?

Running iRedmail 0.8.5 on RHEL 6.4 with MySQL.  Have/had a fully working setup, then I installed Passenger for apache, and it somehow reset the virtual hosts setup.  I need to get it back.

I want www.mysite.com > Rails App (in a user directory)
and mail.mysite.com > Roundcube/iRedmail/iredadmin as before

Besides the vanilla iRedmail setup, I only did the instructions in these two pages,

http://tecadmin.net/how-to-install-ruby … sing-rvm/#
http://tecadmin.net/configure-ror-appli … passenger/

Ultimately ending with

passenger-install-apache2-module

Now I get the standard, default server test page when going to www.mysite.com.

What's the virtualhost setup I should use to restore iredmail to mail.mysite.com? 

I can then research at least, how to setup virtualhost entry for the www; but the main thing is, they need to be separate; it'll be mail server and passenger running on the same server.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: How to restore virtual host setup after installing Passenger?

Please check value of "DocumentRoot" in Apache config file, make sure it's pointed to correct directory.

3 (edited by arondsmithy 2014-02-25 05:30:58)

Re: How to restore virtual host setup after installing Passenger?

Documentroot is still set to the original, I believe:

DocumentRoot "/var/www/html"

There is the stock index.html in there, but; now a Virtualhost entry (at end of main conf file in the Virtualhosts Section) which seems formatted correctly but just issues a Permission Denied page

<VirtualHost *:80>
      ServerName www.mysite.com
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot '/home/rails-user-dir/www'
      <Directory /home/rails-user-dir/www>
         # This relaxes Apache security settings.
         AllowOverride all
         Order allow,deny
         Allow from all
         # MultiViews must be turned off.
         Options -MultiViews
      </Directory>
   </VirtualHost>

(which is what Passenger provided after installation; this dir contains a test index.html to check that it's pointing to the correct place)

4

Re: How to restore virtual host setup after installing Passenger?

arondsmithy wrote:

just issues a Permission Denied page

Any related log in Apache log file? You should be able to see which file has permission issue.