• 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

After Upgrade Plesk 11.0.9 #59 to 11.5.30 #19 Error "400 Bad Request"

PriyanA

Regular Pleskian
Hi,

Upgraded New(Just after got it from Service Provider) Plesk 11.0.9 #59 VPS to 11.5.30 #19

Now I'm getting this error when i try to login to the panel without HTTPS

400 Bad Request
The plain HTTP request was sent to HTTPS port
nginx


How can i fix this?

Found some thread in the forum but couldn't find any solution.

Thanks
Xeont
 
Check that you have enabled safe mode in /etc/php.ini and disable it:

Safe_mode = Off

PHP 5.4 cannot run in safe mode.
 
Thank you Igor.

with,

/etc/sw-cp-server/conf.d/plesk.conf

Code:
server {
listen 8443 ssl;
listen 8880;
include conf.d/*ipv6_ports.inc;


ssl_certificate /usr/local/psa/admin/conf/httpsd.pem;
ssl_certificate_key /usr/local/psa/admin/conf/httpsd.pem;

include conf.d/*plesk.inc;
include conf.d/*wpb.inc;
include conf.d/*cbm.inc;
include conf.d/*sso.inc;
[B]error_page 497 https://$host:$server_port$request_uri;[/B]
}

worked after a Restart of the server.

not sure if this the best way to fix it. works for now.

Regards,
Xeont
 
PriyanA,

You added the error_page line of code to the plesk.conf file?

My conf file does not include that line and I get the same error you were getting.

Thanks,
Justin
 
Hi Justin,

I manually added

Code:
error_page 497 https://$host:$server_port$request_uri;

to the /etc/sw-cp-server/conf.d/plesk.conf file and restarted the server.

Regards,
PriyanA
 
Hi Justin,

I manually added

Code:
error_page 497 https://$host:$server_port$request_uri;

to the /etc/sw-cp-server/conf.d/plesk.conf file and restarted the server.

Regards,
PriyanA

I have the same problem and add this line, but it did not fix the issue
 
did you restart the server? make sure the you have place the code correctly
 
Last edited:
thanks for answering, I dobble checked it and looks good and I stopped / started the srever again and now it works

thanks
 
Last edited:
Back
Top