Forum

Running Diaspora pod with Hiawatha

Camel
1 November 2014, 20:04
Is it able to run Diaspora pod with Hiawatha webserver?

https://joindiaspora.com/

The main Diaspora web application is a specific RoR-like application that runs on port 3000 and need a reverse proxy in front of it. Diaspora could not be ran as FastCGI application. Hiawatha could be a proxy, but Diaspora needs webserver to server it's static data (images and css) n a special way. You can see nginx and Apache example configurations here:

https://wiki.diasporafoundation.org/Nginx_configuration
https://gist.github.com/jhass/719014

The most intersting part is

if (!-f $request_filename) {
proxy_pass http://thin_cluster;
break;
}

and

RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f

Does it mean that nginx and Apache proxy request only if such file is not found? Can Hiawatha work is such way? Have anybody installed Hiawatha in front of Diaspora successfully? I've used simple ReverseProxy rule. Diaspora is available in my configuration but looks broken (without css and images).

Hiawatha version: 9.8
Operating System: Debian 7.7 (wheezy)
This topic has been closed.