If you are running a web application on a VM in a CloudShare environment, you can embed the application in the environment viewer on a dedicated tab.
As with all environment viewer customizations, you can save the dedicated tab to the snapshot on which the environment is based, so that all environments based on the snapshot will automatically feature the tab. In each specific environment, the tab URL points to the web application running on the relevant VM within the environment.
To embed the web application in the environment viewer:
Make sure the application is accessible via HTTP or HTTPS. There are two configuration options:
Using the instructions on this page go to the Customize Environment Viewer page, access advanced settings and add an External URL tab.
Optionally rename the tab to be appropriate to the application you are going to embed in the tab. (Click on the name and overwrite it.)
In the new External URL tab's editor, check Use an environment machine address.
If you want the application to open in a separate browser tab when the user clicks the external URL tab, check Open in a new browser tab. Otherwise, the application will open in the external URL tab itself.
Specify how to build the application URL:
Protocol. Choose HTTP or HTTPS from the dropdown. HTTP is only available if you checked Open in a new browser tab.
Hostname. Find the VM in the dropdown, click it and then select one of the available hostname types that appears. Depending on the network configuration, you may have up to two options per VM:
External Hostname. The hostname for accessing the VM by public IP. This option is available if the VM is accessible via public IP.
Web access Hostname. The hostname for accessing the VM via web access. This option appears if web access is enabled for the VM.
URI Path (optional). Add a URI path if needed. If variables are required in the path, you can either use the buttons provided or enter them manually.
You can see a preview of the URL in the URL Preview field.
If you want to save the new tab to the snapshot from which the environment was created, select Apply viewer settings to snapshot.
Click Save to save the new tab in the environment viewer.
Go to the environment's details page and click View to view the environment in the environment viewer and test the tab you just added. Fix any issues that might arise with the machine address as needed.
In case of a mismatch between a VM's configuration and the specified environment machine address, the application cannot be found and displayed on the tab. An invalid state message appears on the tab and indicates what the issue is.