I'd like to restrict WHM access to a specific IP address so I figured I'd set up a reverse proxy. I can get to the WHM login page fine but after I authenticate, I get returned to the login page with no errors. (If I submit bogus credentials, I get a login error from WHM as expected so I know the form is being submitted fine.)
Here's the Apache config I'm using on my external server:
I don't see WHM's secure login cookies being set after I login which is probably what's causing my login attempt to bounce.
Can someone help me fill in the missing blanks here??
Here's the Apache config I'm using on my external server:
Apache config:
<VirtualHost *:443>
ServerName mywhm.example.com
SSLProxyEngine On
SSLProxyCheckPeerCN On
SSLProxyCheckPeerExpire On
SSLProxyCheckPeerName On
SSLInsecureRenegotiation Off
SSLProxyVerify none
SSLVerifyClient none
SSLCertificateFile /tmp/example.crt
SSLCertificateKeyFile /tmp/example.key
ProxyRequests Off
ProxyPreserveHost Off
ProxyPass / https://example.com:2087/
ProxyPassReverse / https://example.com:2087/
ProxyPassReverseCookieDomain example.com mywhm.example.com
<Location />
Require all granted
</Location>
</VirtualHost>
Can someone help me fill in the missing blanks here??