Ví dụ ntfy dùng cổng 9191.
DirectoryIndex disabled
RewriteEngine On
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule ^/?stream(.*) "ws://localhost:9191/stream$1" [P,L]
RewriteRule "^/?(.*)" "http://localhost:9191/$1" [P]