Blazor on Linux behind apache reverse proxy

Set up your virtual host as shown below. Also enable the module proxy_wstunnel

ProxyRequests On
ProxyPreserveHost On
ProxyPassMatch ^/_blazor/(.*) http://0.0.0.0:5001/_blazor/$1
ProxyPass /_blazor ws://localhost:5001/_blazor
ProxyPass / http://0.0.0.0:5001/
ProxyPassReverse / http://0.0.0.0:5001/
Share

Leave a Reply

Your email address will not be published. Required fields are marked *