Apache2 Reverse proxy subdirectory /kolibri
See original GitHub issueI found that it was difficult to deploy Kolibri using Apache2 mod_proxy module on subdirectory “/kolibri”. The issues stems from the fact that django users absolute paths internally.
Here is full Apache2 kolibri.conf configuration:
ProxyPreserveHost On
RedirectMatch ^/kolibri$ /kolibri/
ProxyPass /kolibri/ http://127.0.0.1:8009/
ProxyPassReverse /kolibri/ http://127.0.0.1:8009/
</VirtualHost>
And Kolibri Systemd unit file.
Description=Kolibri
[Service]
Type=forking
RemainAfterExit=yes
Environment=KOLIBRI_USER=kolibri
Environment=KOLIBRI_HOME=/opt/kolibri
Environment=KOLIBRI_HTTP_PORT=8009
Environment=ALLOWED_HOSTS=localhost
Environment=USE_X_FORWARDED_HOST=True
ExecStart=/usr/local/bin/kolibri start
ExecStop=/usr/local/bin/kolibri stop
[Install]
WantedBy=multi-user.target
And the downstream bug: https://github.com/iiab/iiab/issues/913
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Apache Proxying to Subdirectory doesn't work - Server Fault
I have the following configuration. <VirtualHost *:443> ProxyPreserveHost On ProxyPass / http://127.0.0.1:5000/ ProxyPassReverse / http://127.0.
Read more >How to setup Play on a sub-directory, behind an Apache ...
Specific requests to the '/playapp' subfolder are forwarded to Play! via a reverse proxy via mod-proxy: mod-proxy.conf ProxyPass /playapp/ http: ...
Read more >Apache port to subfolder reverse proxy - Mervin Praison
Apache port to subfolder reverse proxy ... Install Apache2 with mod_proxy: sudo apt-get install libapache2-mod-proxy-html.
Read more >Apache reverse-proxy from subdirectory to navidrome - Reddit
The reverse proxy itself seems to work fine, but navigating to domain/music/ gets me caught on an infinite redirect loop to domain/music/app/ ...
Read more >Apache Subdirectory Setup - Ghost.org
It's possible to setup a reverse proxy using Apache to establish a subdirectory on Ghost(Pro). For this configuration to work successfully, you must...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FTR:
options.ini
now supportsPATH_PREFIX
@rtibbles I just remembered, though, that as to my above message, I think we need to add some more context to the naming. Because there are two types of paths: 1) the URL and 2) the disk path.
I think calling this
URL_PATH_PREFIX
is will avoid future ambiguity.Sounds good.