Submit a ticketCall us

Systems Monitoring for Dummies
Our new eBook will teach you the fundamentals and help you create monitors and alerts that are effective, meaningful, and actionable. Monitoring is more than a checkbox on your to-do list. This free eBook will give you practical advice to help you succeed in all aspects of monitoring – discovery, alerting, remediation, and troubleshooting. Don’t miss out on this indispensable resource for newbies, experienced IT pros, and everyone in between. Register Now.

Home > Success Center > Web Help Desk (WHD) > Unable to redirect communications to the SSL port

Unable to redirect communications to the SSL port

Overview

In a standard Web Help Desk deployment, you can enable Web Help Desk to accept HTTP or HTTPS requests by using one of the following methods:

  • Enable the Insecure Port or SSL Port settings in the whd.conf file.
  • Click Setup > Options in the user interface and select Always (for HTTPS requests) or Never (for HTTP requests) in the Force HTTPS field.

In version 12.2 under certain conditions, Web Help Desk may not redirect communications through the SSL (HTTPS) port when enabled in the whd.conf file or the user interface.

Environment

  • Web Help Desk 12.2

Cause

Software bug. This issue will be addressed in a future release.

Steps

Enable redirects to the SSL port

  1. On the system running Web Help Desk, navigate to:
  2. C:\Program Files\WebHelpDesk\conf

    This path applies to a default installation on a Microsoft® Windows® system.

  3. Open the whd.conf file in a text editor. 
  4. In the file, ensure that the following code is not commented out:
    DEFAULT_PORT=8081
    HTTPS_PORT=443
  5. In the file, ensure that the following code is commented out:
    NO_REDIRECT=true
  6. Save and close the whd.conf file.
  7. Navigate to:
    C:\Program Files\WebHelpDesk\bin\tomcat\conf 
  8. In the conf directory, locate and backup the web.xml file to another location.
  9. In the conf directory, open the web.xml file in a text editor.
  10. In the file, locate the following code:
    < ! -- The JSP page compiler -- >
  11. Copy and paste the code listed below in the attachment before the code listed in step 10.
  12. Save and close the web.xml file.
  13. Close and restart Web Help Desk to enable your changes.

Code

Apply the following code for step 11.

<!-- Require HTTPS for everything except /img (favicon) and /css. -->
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>HTTPSOnly</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>HTTPSOrHTTP</web-resource-name>
            <url-pattern>*.ico</url-pattern>
            <url-pattern>/img/*</url-pattern>
            <url-pattern>/css/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>NONE</transport-guarantee>
        </user-data-constraint>
    </security-constraint>

 

Last modified

Tags

Classifications

Public