URL / SubDomain for Listening

13 views
Skip to first unread message

D Durga Prasad

unread,
Oct 17, 2021, 12:08:17 PM10/17/21
to mediasoup
Hi,

I want to make media soup listen to the URL like  

instead of 

Actually we are using a nginx as a frontend proxy for many urls one of them is the mediasoup. The location / in nginx is already occupied. So my config looks like this

 location /vid {
        proxy_pass      https://localhost:3016;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_read_timeout 180;
    }
    location /vid/socket.io/ {
        proxy_pass http://localhost:3016/socket.io/;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_read_timeout 180;
    }

But this is not working. I am getting   Cannot GET /vid
Error. 

Can somebody help?

Reply all
Reply to author
Forward
0 new messages