[Apache] Cấu hình cho ntfy

Cập nhật ngày 04/03/2026
Lượt xem: 12

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]