Allow folders to open as individual session instead of all containing sessions.

Resolved Implemented

Allow folders to open as individual session instead of all containing sessions.

0 vote

avatar

Hi everyone,

I'm maintaining some Linux servers e.g. hosting Apache Tomcat hosting some Java based web applications, web services etc. The important thing to note is that Tomcat itself is NOT publicly available, but only using some reverse proxy setup behind Apache HTTPd. So for customer web-apps etc., browsers connect to HTTPd which forwards requests to Tomcat.

Though, there are some web-apps within Tomcat which are not for customers, but only admins like me. Those are for maintenance reasons mostly to e.g. configure other web-apps hosted for direct access by customers. Additionally, Tomcat itself might provide a web-UI which isn't exposed using HTTPd. Instead, the current approach was to start a SSH session e.g. using PuTTY on Windows, forward localhost:8081 to localhost:8080 on the server and access all web-UIs of interest that way.

RDM can make these things a bit easier by creating an individual session for each web-app of interest and handling the SSH-stuff using SSH Secure Gateway. So my new approach is creating a combination of folders and session using the following example:


Accessing the individual web-apps work already, but currently I need to configure the whole URL per session. Instead it would be great to 1. have http://localhost:8080 on the level of the folder "Tomcat" only and inherit that at the level of the individual sessions. 2., it would as well be great if I could open the folder Tomcat like it was a session by itself to actually open the web-app behind http://localhost:8080.

According my tests, both is not possible currently or at least I don't know how. Opening a folder seems to open the contained sessions only always, not what is associated with the folder itself. Even though if it's a Workstation or Server type, I can put SSH Secure Gateway and URL into the config. So in theory everything is available.

Besides that, inheriting http://localhost:8080 and enhancing it per session by some suffix like /webapp1 doesn't seem to work as well. When inheriting some host, it can't easily be enhanced in the inheriting session, but seems to only be used as-is? Or do I need to work with variables which are used on the Tomcat-folder level, like http://localhost:8080/$WEB_APP$? Didn't get something like that to work and even if this would work, depending on how missing variables are treated it might fail my first wish.

Thanks for considering!

All Comments (7)

avatar

Hello,
I'm not sure if will help but you could try to use a Custom Field variable from the parent to simplify everything? Is it something you tried?

Regards

David Hervieux

avatar

I tried to try, but wasn't able to setup anything useful. I know how to inherit hosts from parent workstation-type folders etc. But those inherited values can't be enhanced further. Things like $HOST$ without inheriting from the parent don't work and I couldn't find any useful docs about custom fields, where to place them, how to reference them etc. So if you can provide any more examples or insights, I might try again. Thanks!

https://forum.devolutions.net/topics/35286/variables-and-custom-fields

avatar

Hello,

By using a Server Folder, you should be able to accomplish what you are looking to do.

forum image

For example, I configured mine to have a Host value of https://localhost:8080/
forum image

Then, you can add a website in that folder and reference the host with $COMPUTER_HOST$, so the website would look like this: $COMPUTER_HOST$webapp1
forum image

In the dashboard, or when you open the session, you will then see the URL is properly configured:
forum image

Best regards,

Richard Boisvert

avatar

That works, thanks. Would be great to reduce the following warning, though:

forum image

Something like detect if variables are used and not show that warning in those cases might make sense. Or resolve the variables like if the session was started and check against that value. Or only show that warning when the URL is changed, currently it comes whenever I change anything. That seems a bit annoying and overkill.

avatar

Hello,

Thank you for your feedback.

A ticket has been submitted to our engineering team regarding this warning when saving the Website entry with a variable in the URL.

Once an update will be available, we will post it here.

Best regards,

Érica Poirier

avatar

Hi,

We have made the improvement concerning the http prompt internally. It should be available starting with version 2022.2.15.0

Regards,

Jean-Francois Duchesne

avatar

Great, that as fast! So back to my original question, I sadly mixed multiple different not working things up...

Is there some folder which can be opened like a session?

My folder containing a host of http://127.0.0.1:8080 only allows me to open all sessions within that folder. But I would like to open http://127.0.0.1:8080 itself using the folder. The current workaround is to have a session of http://127.0.0.1:8080 named _self within that folder.