nginx 설정 URL 에서 프로젝트 이름 제거

813 단어 nginx
server {  
    listen       80;  
    server_name  www.abc.com;
    	location / {  
            proxy_pass http://www.abc.com/project/;
			proxy_cookie_path  /project/ /;
            proxy_set_header   Host    $host:$server_port;
            proxy_set_header   X-Real-IP   $remote_addr; 
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for; 
    	}  
		location /project/ {  
            proxy_pass http://www.abc.com/project/;
			proxy_cookie_path  /project/ /;
            proxy_set_header   Host    $host:$server_port;
            proxy_set_header   X-Real-IP   $remote_addr; 
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for; 
    	}  
		error_page   502  /502.html;
        location = /502.html {
            root   html;
        }
    }

좋은 웹페이지 즐겨찾기