§2024-05-08

reverse proxy configuration as mentioned below

server { listen 80; server_name example.com *.example.com;

    access_log /var/log/nginx/reverse-access.log;
    error_log /var/log/nginx/reverse-error.log;

    location / {
                proxy_pass http://127.0.0.1:5001;

} }

For example:

The front end taking care of user's request is https://munetaka.me:42103, and backend server we have

  • http://h2jammy.yushei.net:42101 weight=1
  • http://hc4nas02.yushei.net:42101 weight=2
  • http://hc4noble.yushei.net:42101 weight=3

please write a reverse proxy config file

Return to Top