Diaspora with Apache2

Update: Note that apache2 doesn’t actually work – the diaspora interface is apparently too tightly coupled to the “thin” webserver to use the apache2 webserver. It looks like it works, but you can’t connect to friends.

Update 2: It does seem to be working again – using an updated version from the git. (sudo services apache2 stop; git pull; bundle install; rake; sudo services apache2 start)

If you’re wondering how I got diaspora working with apache2, I followed the instructions here:

https://help.ubuntu.com/community/RubyOnRails

And used the following in my apache2.conf file:

  LoadModule passenger_module /usr/lib/ruby/gems/1.8/ 
         gems/passenger-2.2.15/ext/apache2/mod_passenger.so
  PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.15
  PassengerRuby /usr/bin/ruby1.8

And used the following in my sites-available/default:

<VirtualHost *:80>
    DocumentRoot /var/www/diaspora/public
    ServerName diaspora.fejes.ca
    ServerPath /diaspora
    RewriteEngine On
    RewriteRule ^(/diaspora/.*) /www/diaspora
    RailsBaseURI /diaspora
    Alias /diaspora/ "/var/www/diaspora/public"
    <Directory /var/www/diaspora/public>
      AllowOverride all
      Options -MultiViews
   </Directory>
</VirtualHost>

Happy Diaspora-ing.

3 thoughts on “Diaspora with Apache2

Leave a Reply

Your email address will not be published. Required fields are marked *