mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 510|reply: 2
打印 prevThread nextThread

平台API经过转发之后404

[copyURL]

2

主题

4

帖子

28

积分

newBie

Rank: 1

积分
28
jumpTo
owner
poston 2022-8-1 18:48 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
各位大神,平台API经过转发之后404。localhost:9780页面能正常访问。接口调用也正常。比如这个地址:localhost:9780/bvcsp/v1/dialog/device/webrtc
但是经过了本地nginx转发后,192.168.204.101/vvv1/bvcsp/v1/dialog/device/webrtc地址调用出现404。直接192.168.204.101/vvv1地址也是404。
各位大神是否遇到过这个问题。下面附上nginx配置
server {
        listen       80;
        server_name  192.168.204.101;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   D:/html/gujing;
            index  index.html index.htm;
        }
        location /server {
                        proxy_pass http://localhost:8089;
                        proxy_set_header Host $http_host;
                        proxy_set_header X-Real-IP $remote_addr;
                        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                }
        location /vvv1 {
                        proxy_pass http://localhost:9780;
                        proxy_set_header Host $http_host;
                        proxy_set_header X-Real-IP $remote_addr;
                        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                }
        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
reply

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-17 19:38 , Processed in 0.056643 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList