Fiduswriter proxy as subdirectory Apache2

I am trying to set up fiduswriter on my server as subdirectory. Currently I have another app running on the same server that can be accessed on http://(my-ip)/redmine/. I would like to use same IP and access Fiduswriter on http://(my-ip)/fiduswriter/.

I am using the following settings:

<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/
<Location /redmine>
RailsEnv production
RackBaseURI /redmine
</Location>

    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^/ws [NC,OR]
    RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
    RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
    RewriteRule .* ws://127.0.0.1:4386%{REQUEST_URI} [P,QSA,L]

    # Fiduswriter
    ProxyPass /fiduswriter/ http://localhost:4386/
    ProxyPassReverse /fiduswriter/ http://localhost:4386/
    RedirectMatch permanent ^/fiduswriter$ /fiduswriter/
    RewriteRule ^/fiduswriter/(images|javascripts|stylesheets)(.*) /fiduswriter/$1$2
</VirtualHost>

While Redmine still works, when I open Fiduswriter I get this:

I tried with fiduswriter snap, but also running fiduswriter from virtualenv.

Am I missing something?

Hey,
Fidus Writer is a complex web app so it’s not set up for being served from a single directory like that. It would be a non-trivial change to provide this. What you could do is host it on a subdomain. You can then still serve redmine from the same server as both NGINX and Apache are designed to serve multiple websites, each on its own domain/subdomain, but hosted on the same machine.

Thanks @johanneswilm for the quick reply. Currently, I dont have a domain, but as soon as I set the domain I will try to setup Fidus Writer as subdomain.

1 Like