• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Forwarded to devs Error message for additional nginx directives are causing confusion when proxy mode is enabled

Kaspar

API expert
Plesk Guru
Username:

TITLE


Error message for additional nginx directives are causing confusion when proxy mode is enabled

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk: any version
Os: any OS

PROBLEM DESCRIPTION

Adding additional nginx directives containing a location / { } block causes an nginx error when Proxy Mode is enabled (which it is by default). This is expected behavior from a technical point of view. But the error message shown doesn't fully indicate what's causing the error and how to possibly solve it. It's not a bug per see, but it looks like quite a few users are struggling with this. As it's not clear to users that "Proxy Mode" also uses a location / { } block that's preventing them from adding their own root location block.

Some threads from user on this forum with users struggling with this issue:

Perhaps the error message can be improved on to also suggest a solution (i.e: disable proxy mode or use another location syntax). :)

STEPS TO REPRODUCE
  1. Add domain in Plesk
  2. Add some additional nginx directives containing a within a location / { } block
  3. See error

ACTUAL RESULT

Error message shown is technically correct, but not helpful in indicating what is causing the actual problem and offering a possible solution to users.

EXPECTED RESULT

A better, more clear, error indicating the issue and offering a solution.

ANY ADDITIONAL INFORMATION

(DID NOT ANSWER QUESTION)

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Last edited:
Thank you for the report, @Kaspar . I forwarded it to our team for further review and processing. I will follow-up with more details as soon as possible.
 
Back
Top