Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to create custom locations for your endpoint, there is currently a bug that can be fixed with the following a workaround : (https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3474#issuecomment-1902790528

Example: 

Image Removed

...

):


  1. SSH into your NGINX proxy machine
  2. become sudo
    Code Block
    sudo su
  3. Go to nginx folder 
    Code Block
    cd /opt/nginx-proxy/
  4. create an empty file called _hsts_map.conf 
    Code Block
    touch _hsts_map.conf
  5. Update the docker-compose file with the new line (see the one in yellow in the screenshot below - /opt/nginx-proxy/_hsts_map.conf:/app/templates/_hsts_map.conf) and save

    Code Block
    vi docker-compose.yml
    Image Added
  6. restart container (in newer versions of docker compose it might be docker compose)
    Code Block
    docker-compose up -d
  7. Now login to your NGINX Proxy Manager UI and modify the hosts as shown in the below example ( you need to add a custom section into the configuration rewrite /api/(.*) /$1  break; to work properly.)

Example: 

Image Added