• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question nginx not doing what I want it to do

mr-wolf

Silver Pleskian
Plesk Guru
I think I have a solution for using webmail with the default LetsEncrypt certificate.
Instead of creating a special subdomain I want to patch the nginx config for all the vhosts with a certificate.

instead of https://webmail.clientdomain.com I want them to connect to https://clientdomain.com/webmail

For this purpose I patched this part of that vhost config
Code:
        location / {
                proxy_pass https://xx.xxx.xxx.xx:7081;
                proxy_set_header Host             $host;

Code:
        set $modhost $host;
        location ~ /webmail {
                rewrite ^/webmail(.*)$ $1 last;
                set $modhost webmail.$host;
        }

        location / {
                proxy_pass https://xx.xxx.xxx.xx:7081;
                proxy_set_header Host             $modhost;

Nginx is taking it and reacting on it, but when I go to https://clientdomain.com/webmail I'm getting a "500 Internal Server Error".
Is my nginx code incorrect or am I conceptually wrong?

I've already written a script that will patch all my configs and that script could be part of a cronjob.
There's not much use if the test on this domain is not working.

BTW: The site itself continues to work as it should. Maybe I'm just missing something in the rewrite??
 
Last edited:
Again....
There must be someone on this board that knows enough about nginx to know how to get this working?
 
Back
Top