Gekko Forum
Proper reverse proxy config for Apache when Gekko is not accessed from the root - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html)
+--- Thread: Proper reverse proxy config for Apache when Gekko is not accessed from the root (/thread-57953.html)



Proper reverse proxy config for Apache when Gekko is not accessed from the root - t52CKEb7xFctB6T_Rc - 06-23-2019

I am setting up Gekko, and I want it to be accessible remotely. My webserver already has Nextcloud and some stuff on the webroot, so switching to nginx or putting gekko on the root is not possible. I also don't have a domain name (I'm using a dynamic DNS service) and only control one IP address, so I don't think a subdomain would be possible. Let's say that I own example.com, because I don't want to reveal my real IP. I want to be able to go to example.com/gekko in my browser to access gekko. I already have an SSL certificate and I have authentication set up, so those are not issues. So far, I've managed to get the main page and the scripts and stylesheets to load, but AJAX requests and websocket connections don't seem to have their URLs being automatically rewritten. I tried adding ProxyHTMLExtended on to my config, but that didn't do anything. Is there any way to get ProxyHTMLURLMap to also process Javascript files? Here's what I have right now:
Code:
<Location /gekko>
       AuthType Basic
       AuthName "Wrapper auth"
       AuthBasicProvider file
       AuthUserFile /etc/apache2/.htpasswd
       Require valid-user

       ProxyPass "http://localhost:3000"
       ProxyPassReverse "http://localhost:3000"

       ProxyHTMLURLMap http://localhost:3000 /gekko
       ProxyHTMLURLMap ws://localhost:3000 /gekko
       ProxyHTMLURLMap / /gekko
       ProxyHTMLExtended on
</Location>



RE: Proper reverse proxy config for Apache when Gekko is not accessed from the root - t52CKEb7xFctB6T_Rc - 06-26-2019

Bump.


RE: Proper reverse proxy config for Apache when Gekko is not accessed from the root - t52CKEb7xFctB6T_Rc - 07-03-2019

I still can't figure it out.