NGINX - how to detect WSS request in location

Viewed 15

I want redirect exact url (= /) for HTTPS but pass for WSS. How can I separate WSS request from the HTTPS? $protocol

https://localhost.demo/ -> redirect wss://localhost.demo/ -> pass

location =/ {
  #?
}
0 Answers
Related