• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

sw-cp-server "error_page 497" non-SSL to SSL redirect disfunctional in Plesk Onyx 17.5

Bitpalast

Plesk addicted!
Plesk Guru
TITLE:
sw-cp-server "error_page 497" non-SSL to SSL redirect disfunctional in Plesk Onyx 17.5
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Onyx 17.5, latest MU, many OS
PROBLEM DESCRIPTION:
In previous Plesk version, opening the panel login page on a non-SSL connection auto-redirected to an SSL encrypted connection. From Plesk Onyx 17.5 on, this does no longer work. See thred Issue - Plesk Panel 17.5 | 400 Bad Request The plain HTTP request was sent to HTTPS port for more details.​
STEPS TO REPRODUCE:
In any browser, as the URL type
hostname:8443
without a preceding https://, for example type
http://hostname:8443
ACTUAL RESULT:
Nginx delivers a 400 error "The plain HTTP request was sent to HTTPS port".​
EXPECTED RESULT:
Nginx should follow the " error_page 497 https://$hostname:$server_port$request_uri;" directive in /etc/sw-cp-server/config and redirect the non-SSL request to SSL.​
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
Working work-around provided: => #30

Still, a confirmation from the Plesk - Team should be done. ;)
 
I think you can leave things as they are. If the update changes the file - good. If it does not change it - good, too.
 
Back
Top