• 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

Resolved Can't disable redirect from http to https

talulipa

New Pleskian
After unchecking "Permanent SEO-safe 301 redirect from HTTP to HTTPS" and pressing the "Update & Sync" button, the redirect continues to work. I go to the nginx.conf file of the test site and see the following lines in it:
NGINX:
server {
  listen xxx.xxx.xxx.xxx:80;
  server_name xxxxxxxxxx.xxx;
  client_max_body_size 128m;

  # mailconfig
  ------- xxxxxx -------
  # mailconfig

  location / {
    return 301 https://$host$request_uri;
  }
}
Is there anything else I need to do to disable the redirect?
 
Are you referring to the general server nginx.conf file in /etc/nginx or to an individual nginx configuration file of the specific domain?
 
This is a fragment of the individual nginx.conf configuration file located in the /var/www/vhosts/system/xxxxxxxxxx.xxx/conf/ directory.
 
That is strange. However, you wrote that you pressed the "update & sync" button. For an individual forward configuration you'd need to go to "hosting settings" of that domain (subscription) and apply the change there, not in the subscription template. Could that be the solution?
 
I followed this guide:

I logged into the Plesk control panel as an administrator, clicked "Service Plans" in the left vertical menu, selected the desired plan (this is the only plan that has Subscriptions at the moment), went to the "Hosting Parameters" tab, unchecked "Permanent SEO" - safe 301 redirect from HTTP to HTTPS" and clicked on the "Update & Sync" button. After clicking on the "Update & Sync" button, the message "Service plan 5GB was successfully synced with subscriptions" appeared in the lower right corner.

Is this the right way? Or did I need to go to some other menu?
 
This updates the service plan, but it does not overwrite individual hosting configurations of domains if they have been set, because these are not determined by the service plan once individualized. Instead try this:

Sign in to your subscription.
Click "hosting settings" of the domain you want to edit.
Remove the "301 SEO redirect" checkbox mark.
Click "OK" to store the hosting settings of that domain.
 
Back
Top