I do realise this question has been asked about 6 years ago Bind nginx on the same port for tcp and http
However, has anything changed, is it possible for me to do something like:
stream {
listen 80;
location / {
protocol http;
}
location /mysql {
protocol tcp;
}
}
Or must thetcp
and http
modules still be separate?