• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

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