部署live-camera启动正常,无法正常访问qwq

Eer

页面显示:

400 Bad Request
Sec-WebSocket-Key not found.
This is a WebSocket service and can not be accessed via HTTP.

server配置:

server {
listen 80;
server_name domain.com;
access_log off;
index index.html index.htm index.php;
include /usr/local/nginx/conf/none.conf;
root /data/wwwroot/live-camera;

location ~ \.php(/|$) {
    #fastcgi_pass remote_php_ip:9000;
    fastcgi_pass unix:/dev/shm/php-cgi.sock;
    fastcgi_index index.php;
    include fastcgi.conf;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    }
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ {
    expires 30d;
    access_log off;
    }
location ~ .*\.(js|css)?$ {
    expires 7d;
    access_log off;
    }
}

help qwq

3777 3 0
3个回答

walkor 打赏

按照教程来,不用配置nginx

  • Eer 2016-10-23

    解决啦~谢谢qwq

walkor 打赏

http://www.workerman.net/camera
嗯,按照教程来就3步,下载;运行;访问;不能再简单了

  • 暂无评论
wxdong2008

我调用摄像头的js都报错啊,你说尴尬不
navigator.getUserMedia({video:true, audio:false}, success, console.log);

  • 暂无评论
年代过于久远,无法发表回答
×
🔝