• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Issue Reverse Proxy 500 Error

DragonMaster

Basic Pleskian
Server operating system version
Linux
Plesk version and microupdate number
18
Reverse Proxy 500 Error


▼PleskVersion:Plesk18


▼Reverse Proxy 500 Error


▼Error Log

SSL Proxy requested for Example.com:443 but not enabled [Hint: SSLProxyEngine]
HTTPS: failed to enable ssl support for IP

SSL Proxy requested for Example.com:443 but not enabled [Hint: SSLProxyEngine]
HTTPS: failed to enable ssl support for IP
 
You seem to have a special proxy redirect configuration. The error is not resulting from the default Plesk Nginx proxy setup. It has something to do with a special way to redirect website traffic in a web server or .htaccess configuration. It would look somewhat similar like this there:

RewriteRule ^(.*)$ http://SOURCE.TLD[/DIRECTORY]/$1 [P,L]

The "P" is the proxy option. If you use that, you also need to add these two directives to the "Additional Apache directives" in the "Apache and nginx settings":

ProxyRequests On
SSLProxyEngine On

You may also need to disable "server static files through nginx" options.
 
▼ Current contents
・Directory:TEST123
・Shared server IP address:123.456.789.0

<Location "/TEST123">
ProxyPass https://123.456.789.0
ProxyPassReverse https://123.456.789.0
ProxyPassReverseCookieDomain https://123.456.789.0 example.com
ProxyPassReverseCookiePath / /TEST123/
</Location>

SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off

<Proxy *>
Order deny, allow
Deny from all
Allow from all
</Proxy>





■ Fix?


<Location "/TEST123">
ProxyPass https://123.456.789.0
ProxyPassReverse https://123.456.789.0
ProxyPassReverseCookieDomain https://123.456.789.0 example.com
ProxyPassReverseCookiePath / /TEST123/
</Location>

RewriteRule ^(.*)$ http://example.com[/TEST123]/$1[P,L]

Proxy Requests On
SSL Proxy Engine On
 
Back
Top