Monday, May 8, 2017

Getting "Invalid method in request \x16\x03\x03" after configuring SSL in OHS


You may have received the following obscure error when trying to start up OHS after configuring SSL. This error would appear in the ohs1.log file:
[2017-05-26T03:36:34.5467+00:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [client_id:] [host_id:] [host_addr:] [tid: 148714440300748] [user: oracle] [ecid: 005ILyaQOA000E8d09q0yige6aMWV00028] [rid: 0] [VirtualHost: main]  Invalid method in request \x16\x03\x03 

"This error is due to a misconfiguration of VirtualHost with SSL. The server is trying to respond to a request on port 443 with unencrypted HTTP. In other words, your browser is expecting SSL, but the server is sending plain HTTP on port 443." (Source)

1. Edit ssl.conf.

2. Confirm that the Listen and VirtualHost tags are using the same hosts and ports, and correct them if necessary:
Listen 443
<VirtualHost *:8080>
Listen 443
<VirtualHost *:443>
3. Restart OHS.
4. If that does not work, try putting the fully qualified domain name:
Listen 443
<VirtualHost *:443>

Applicable Versions
  • Oracle WebTier 11g (


No comments: