How to use Reverse Proxy mode

76

FASTPANEL supports Reverse Proxy mode, which allows you to specify servers (such as web servers or application servers) to which incoming requests should be proxied.

To enable Reverse Proxy, open the “Settings” menu in Site card and in the “Backend (PHP, Reverse proxy, etc.)” select “Reverse proxy”.


Types of Reverse Proxy

The upstream address can be either Host or Unix socket.


Host

If you choose the Host type, you must specify the URL or IP address along with the port.

Examples of correct Host addresses:

  • http://127.0.0.1:3000

  • https://localhost:443

Note: concurrent use of the https:// protocol with unix:// or http:// impossible.


Unix

If you choose the Unix type, you must specify the Unix socket path.

The prefix unix:/ does not need to be added.
For example, /tmp/my_socket is a valid Unix socket address.


Multiple addresses

If you specify several addresses in the upstream list, requests will be distributed among them according to the balancing method round-robin (one by one).