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:
Back
Top