liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 925 forks source link

Install Gateone on already running website? #419

Open sirmbhe opened 10 years ago

sirmbhe commented 10 years ago

Hi,

I am a noob, i am still learning and i am sorry if my question was stupid one.

I have a running website on vps server, how can i install or configure Gateone, if i want to put it on my subdirectory (example: mydomain.com/terminal) ?

Also, what if port 443 for secure connection already in use by apache?

I try to test Gateone on DO droplets, and it just work like i wanted. And now, i want to implement Gateone on my web,

Kindly, share your knowledge.

Thank you very much

liftoff commented 10 years ago

Well I don't think it is possible to do that with Apache because the mod_proxy module doesn't support WebSockets (or at least it didn't a few months ago). It can work with Nginx though. Just don't ask me what the config for that is since I'm not using it myself.

What I can tell you is that in order for it to work you need to set a "url_prefix" in Gate One's settings (10server.conf) to the path where you placed it behind your reverse proxy (web server). So if you wanted Gate One running at mydomain.com/terminal you'd set the "url_prefix" to this:

"url_prefix": "/terminal"

That would make sure that all of Gate One's dynamically-generated paths and whatnot are correct for your installation.

Dav-Edward commented 10 years ago

I tried hosting GateOne on port 555 and I made sure to set my "url_prefix" to /term for my case. The server loads when I use mod_proxy, but it spits out a 404 error at me. I followed the apache instructions on how to enable mod_proxy along with all the other dependencies, enabled HTTPS in apache, and at the bottom of my HTTPS config file I put in:

Website I roughly followed instructions from: https://www.digitalocean.com/community/articles/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

SSLProxyEngine on ProxyPreserveHost Off ProxyPass /term https://127.0.0.1:555 ProxyPassReverse /term https://127.0.0.1:555

It seems to work, but I have to figure out how to resolve the 404 error from within GateOne now.

Edit: It appears that there is a mod_proxy_wstunnel addon for Apache 2.8.4.xx that will allow Apache to support mod_proxy with websocket functions for things like Gateone. Sadly for me Ubuntu 12.04 uses Apache 2.2.22 and I'm not too comfortable trying to update Apache, PHP, and all other reliant services to work that that newer version manually.

If anyone else feels up to the challenge I wish you luck!

molchanov1983 commented 7 years ago

@sirmbhe Hello Right now i have the same task like you had. I have already running site with cisco device visualization and need to add "open SSH session" context menu to all of them. My customer uses windows server apache 2.4 php 7.1 and i donot know for now how to use gateone in my application. Would i ask you if you completed your task? Coud you help me to solve it? Thanks

molchanov1983 commented 7 years ago

Maybe anybody could help me to integrate gateone into web site. server : windows apache2.4 php 7.1 Thanks