question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apache2 Reverse proxy subdirectory /kolibri

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
benjaomingcommented, Aug 30, 2018

FTR:

options.ini now supports PATH_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.

0reactions
rtibblescommented, Sep 17, 2018

Sounds good.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found