요청 사이트 출현: no - referrer - when - downgrade

3106 단어 linux자바nginx
앞 뒤 가 분 리 된 항목 이 nginx 를 설정 한 후에 나타 납 니 다. 사이트 에서 'no - referrer - when - downgrade' 를 요청 할 때 nginx 에서 설정 한 백 엔 드 항목 의 인터페이스 경 로 를 보 려 고 합 니 다.
바로 다음 과 같은 부분 입 니 다.
 location /   /api/ {
        proxy_pass http://127.0.0.1:  /api/;
	    proxy_connect_timeout 600;
	    proxy_read_timeout 600;
    }

다음은 제 전체적인 프로젝트 설정 입 니 다. 참고 하 시기 바 랍 니 다.

server {
    listen 80;
    server_name www.xxx.com;
    set $project    ;
    root /mnt/data/dist;

    access_log /mnt/logs/$project.access.log;
    error_log  /mnt/logs/$project.error.log;
    location / {
        index index.html;
		try_files           $uri $uri/ /index.html?_url=$uri&$args;
    }

   
    location /   /api/ {
        proxy_pass http://127.0.0.1:   /api/;
	    proxy_connect_timeout 600;
	    proxy_read_timeout 600;
    }

  
  } 

좋은 웹페이지 즐겨찾기