---
title: "WAS+NGINX代理时端口转发问题"
author: "yang_ch"
date: "2015-08-19T09:10:19Z"
tags: []
categories: ["企业架构"]
slug: "was-nginx"
draft: false
lastmod: "2015-08-19T09:10:19Z"
id: 2236428
url: "https://yang-ch.iteye.com/blog/2236428"
---

现象：

域名绑定nignx代理，然后转发到后端的webshpere机器上，结果呢，登陆跳转的时候总是变成域名+websphere的端口号，导致跳转地址错误，无法正常访问系统。

 

处理：

应用程序服务器 &gt; server1 &gt; Web 容器 &gt; 定制属性 ，加入以下两个定制属性：

com.ibm.ws.webcontainer.extractHostHeaderPort=true

trusthostheaderport=true

 

webshpere版本7.1..

 

坑我的问题，记下来备案。