06-23-2019, 09:52 PM
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>