Seperate seafile, apache and mariadb servers


For greater security, I would like to separate my Seafile installation to three different servers. The MariaDB and Seafile servers are on a private network. The Apache server is dual homed, with one interface on the public Internet and the other on the private network. The problem is with the following line on the Apache configuration from the “Config Seahub with Apache” section of the Server manual:

Alias /media /home/user/haiwen/seafile-server-latest/seahub/media

Since /home/user/haiwen/seafile-server-latest/seahub/media is now on a remote Seafile server, Alias will not work. Is there a way to accomplish the same thing on a remote Seafile server?


I have never done this myself but this should not be a problem. First you need a webserver on the internal Seafile server to serve /media On your frontend server you need to setup a proxy for /media e.g.

ProxyPass /media http://$IPADDRESS
ProxyPassReverse /media http://$IPADDRESS