• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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