'Redis server connection error via redirect in apache

hello

I am redirecting to the internal local host Redis server when a signal comes in as redis.domain.com:222 on port 222 that is open to the outside among the company servers.

<VirtualHost *:222>
  ProxyPreserveHost On
  ProxyRequests Off
  ServerName redis.squarehub.io
  ServerAlias squarehub.io
  ProxyPass / redis://localhost:6379/
  ProxyPassReverse / redis://localhost:6379/
</VirtualHost>

However, if you enter the command immediately after connecting to redis-cli, an error like the following message is displayed and the connection is terminated.

"Error: Protocol error, got "H" as reply type byte"

I don't know what the problem with this is. can you tell me this ?

thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source