Hey guys,
I am attempting to expose a webcam (edimax) via nginx. setup is as below
location /cam/ {
proxy_pass http://192.168.1.112/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
But for some reason it doesn't work. I get error 400 when using /cam/ but when i point it to root i.e. location / it work. Basically the camera has the url http://192.168.1.112/live as the URL. Any ideas on how to fix i am betting it's because the camera (edimax and soon to be a foscam as well) don't have /cam as the exposed URL.
Any ideas to fix more than welcome the wife is using this to monitor our dogs whilst we are at work...
I am attempting to expose a webcam (edimax) via nginx. setup is as below
location /cam/ {
proxy_pass http://192.168.1.112/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
But for some reason it doesn't work. I get error 400 when using /cam/ but when i point it to root i.e. location / it work. Basically the camera has the url http://192.168.1.112/live as the URL. Any ideas on how to fix i am betting it's because the camera (edimax and soon to be a foscam as well) don't have /cam as the exposed URL.
Any ideas to fix more than welcome the wife is using this to monitor our dogs whilst we are at work...