GateOne icon indicating copy to clipboard operation
GateOne copied to clipboard

GateOne behind Apache ReverseProxy

Open PaceyIV opened this issue 8 years ago • 5 comments

I have a strange behavior when I use Gateone behind a ReverseProxy with Apache.

GateOne configuration

"disable_ssl": true,
"origins": ["my-server-name.noip.me", "localhost", "127.0.0.1", "my-server-name", "ip6-localhost", "ip6-loopback"],
"port": 10001,
"url_prefix": "/gateone"

Apache HTTPS configuration

ProxyRequests On
<Location /gateone>
                ProxyPass http://localhost:10001/gateone
                ProxyPassReverse http://localhost:10001/gateone
                ProxyPass ws://localhost:10001/gateone
                ProxyPassReverse ws://localhost:10001/gateone
</Location>

With these settings I can use correctly Gateone with the URL https://my-server-name.noip.me/gateone BUT when I use it from a browser I can't navigate to any other https URL on my-server-name.noip.me because everything goes to the Gateone tornado server instead of Apache: I get 404 from TornadoServer/4.4.2. If I open another browser to other HTTPS URL on my my-server-name with Gateone still open in the first browser everything works.

PaceyIV avatar Mar 27 '17 20:03 PaceyIV

You're lacking the path argument for ProxyPass (https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass)

michael-dev avatar Apr 21 '17 09:04 michael-dev

I don't think so. According with the documentation, when used inside a Location section, the first argument (the path) is omitted and the local directory is obtained from the Location.

PaceyIV avatar Apr 21 '17 17:04 PaceyIV

Did you manage to solve your issue?

I'm having a similar issue with gateone running in a lxc container.

My Gateone config "address": "192.168.0.28;10.0.3.2", "disable_ssl": true, "origins": ["localhost", "127.0.0.1","192.168.0.25","192.168.0.13"], "port": 10000, "url_prefix": "/gateone"

Apache config ProxyPass /gateone http://192.168.0.28:10000/gateone retry=0

Apache is runnning on 192.168.0.25 and I am able to see a response on 192.168.0.25:8080/gateone with the message "An SSL certificate must be accepted by your browser to continue. Please click here to be redirected."

But after accepting it nothing is happening and I only see the message "Attempting to connect to the Gate One server..."

borok34 avatar Jun 22 '17 10:06 borok34

No, I don't know how to fix it. I don't use it anymore...

PaceyIV avatar Jun 22 '17 11:06 PaceyIV

Hi,

@borok34 : did you solve your issue because I've got the same ? Since I've updated from Mageia5 to Mageia6, I can't connect anymore using the proxy pass (I can still make it work without it). I've got the same message but I couldn't solve this issue. This is maybe due to an upgrade in apache, or python or ??? I have updated to the last version of gateone, but I always get the same message.

Regards.

Xuo.

ericxuo avatar Sep 06 '17 17:09 ericxuo