Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rest SpringWeb应用程序的可疑行为_Rest_Spring Mvc_Spring Boot_Nginx_Jhipster - Fatal编程技术网

Rest SpringWeb应用程序的可疑行为

Rest SpringWeb应用程序的可疑行为,rest,spring-mvc,spring-boot,nginx,jhipster,Rest,Spring Mvc,Spring Boot,Nginx,Jhipster,我在审核我的SpringWeb应用程序的安全性时,发现了一件奇怪的事情。每当我尝试点击地址时,浏览器就会捕获一个文档供下载。但我的REST控制器上没有列出名为“/app”的API。此外,该文件是空白的。 这是我的申请信息: GET /app HTTP/1.1 Host: xxxxxxxx.xxx User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Accept: text

我在审核我的SpringWeb应用程序的安全性时,发现了一件奇怪的事情。每当我尝试点击地址时,浏览器就会捕获一个文档供下载。但我的REST控制器上没有列出名为“/app”的API。此外,该文件是空白的。 这是我的申请信息:

GET /app HTTP/1.1
Host: xxxxxxxx.xxx
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: NG_TRANSLATE_LANG_KEY=%22en%22; count=0
Connection: close
Upgrade-Insecure-Requests: 1 
以下是从服务器发送的响应:

HTTP/1.1 200 OK
Server: nginx/1.13.12
Date: Tue, 05 Jun 2018 11:19:01 GMT
Content-Type: application/octet-stream
Content-Length: 0
Connection: close
Expires: Sun, 05 Jun 2022 11:19:01 GMT
Cache-Control: max-age=126230400000, public
X-XSS-Protection: 1; mode=block
Pragma: cache
Accept-Ranges: bytes
Last-Modified: Fri, 01 Jun 2018 08:50:14 GMT
X-Content-Type-Options: nosniff
X-Application-Context: some-app
无论何时我尝试从我的本地系统,然后没有这样的问题。我已经为我的应用程序禁用了目录列表,但问题仍然存在。如果需要其他信息,请告诉我

我的NGINX配置如下:

server {
    listen 443 ssl http2;
    server_name xxxxxxxx.xxx;

    # Configure SSL
    ssl_certificate /etc/ssl/certs/nginx/xxxxxx.xxx.chained.crt;
    ssl_certificate_key /etc/ssl/certs/nginx/xxxxxxx.key;
    include /etc/nginx/includes/ssl.conf;

    location / {
        include /etc/nginx/includes/proxy.conf;
        proxy_pass http://10.210.xx.xx:8080;
    }

    access_log off;
    error_log  /var/log/nginx/error.log error;
}

可能来自服务器上部署的其他资源?是否只有在使用nginx时才会发生?似乎这是nginx的问题,因为我的本地系统没有问题。它也是此服务器上部署的单个应用程序。