Issue while getting scheme type from http request

Solution Verified - Updated -

Issue

  • The application runs on http and https; and is front ended by Apache web server.
    Trying to get scheme using getScheme() method from request. The return value when the URL is https://.... is correct, it is "https".
    But when url is http://... getting the scheme as "ajp" in response. Whereas it should be http/https.

Environment

  • Red Hat JBoss Portal (JPP)
    • 6.0
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • Apache Web Server (EWS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content