Demonstrates a simple strategy to host farmOS in a subpath/subdirectory behind a reverse proxy.
- http://farmos.test - serves a simple hello world page
- http://farmos.test/farm0 - serves a basic farmOS 2.x installation (username: root, password: test)
Assumes that the farmos.test
domain is pointing at localhost or the IP of the server where this example is being run.
The main "tricky" thing that's going on in the example is the creation of a symlink in the web root from ./farm0/
back to the web root itself. That was the simplest strategy I could find to make Drupal understand that it should
serve itself from the subdirectory without more complex configuration or file moving.
That strategy is roughly informed by the discussion at https://www.drupal.org/project/drupal/issues/2753591