403 Error When Accessing Docker Application via HTTPS with Reverse Proxy on CyberPanel

Hello CyberPanel support team,

I have deployed an application (Typebot) running in Docker containers on my server using CyberPanel. Everything seems to be properly configured:

  • The domain has a valid SSL certificate installed via Let’s Encrypt.
  • The application runs in a container on port 3001.
  • I created a Virtual Host in CyberPanel and set it up to use reverse proxy to route requests to the container.
  • I edited the vhost.conf file to proxy HTTPS traffic to http://127.0.0.1:3001, and restarted LiteSpeed afterward.

When accessing the application directly using the port, everything works fine, like:

bash

CopiarEditar

http://mydomain.com:3001/pt-BR/signin

However, when accessing the site via standard HTTPS without specifying the port, like:

bash

CopiarEditar

https://mydomain.com/pt-BR/signin

I receive the following error:

pgsql

CopiarEditar

403 Forbidden
Access to this resource on the server is denied!

The SSL certificate is valid and active, but it seems that LiteSpeed is blocking or not forwarding the request properly to the Docker container via the reverse proxy.

I would appreciate your help in identifying why this 403 error is occurring, despite the configuration appearing to be correct.

Thank you in advance!

Can you show us full proxy that you set for port?