Reverse Proxy vhost variables not valid #51

Closed
opened 2026-04-05 20:25:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @JAP42 on 8/29/2025

CloudPanel version(s) affected

V2.4.2

Description

When generating a Reverse Proxy host all I can get is empty responses or unknown SSL errors.

Vhost is not valid, error message: nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /etc/nginx/sites-enabled/postiz2.jap42.net.conf:19 nginx: configuration file /etc/nginx/nginx.conf test failed

When trying to update the vhost files I get this error.

How to reproduce

Just generate a new Reverse Proxy. Previous Reverse Proxies work and have the same variable, but new ones wont work.

Possible Solution

Changing the variable to a static value solved the problem.

Additional Context

No response

*Originally created by @JAP42 on 8/29/2025* ### CloudPanel version(s) affected V2.4.2 ### Description When generating a Reverse Proxy host all I can get is empty responses or unknown SSL errors. `Vhost is not valid, error message: nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /etc/nginx/sites-enabled/postiz2.jap42.net.conf:19 nginx: configuration file /etc/nginx/nginx.conf test failed` When trying to update the vhost files I get this error. ### How to reproduce Just generate a new Reverse Proxy. Previous Reverse Proxies work and have the same variable, but new ones wont work. ### Possible Solution Changing the variable to a static value solved the problem. ### Additional Context _No response_
Sign in to join this conversation.