location /mybotwebhook_somerandom { rewrite ^/mybotwebhook_somerandom$ /billing/?module=claptrapbot&auth=changeme break; proxy_pass http://127.0.0.1; proxy_redirect off; proxy_set_header Host $host; }