I am trying to run TURN protocol over Apache proxy. In Nginx proxies, there is a module for prereading the stream mode, and proxy it to where we want. For example:
stream {
upstream web {
server 127.0.0.1:4444;
}
upstream turn {
server 10.0.0.100:5349;
}
map $ssl_preread_server_name $upstream {
turn.example.com turn;
default web;
}
server {
listen 443;
listen [::]:443;
ssl_preread on;
proxy_pass $upstream;
# Increase buffer to serve video
proxy_buffer_size 10m;
}
}
Here, we can proxy the turn traffic to the TURN port, by prereading the server name.
I couldn't find anything like this in Apache.
Is there a way for this in Apache proxy?