diff --git a/docs/en/Multi-Tenancy.md b/docs/en/Multi-Tenancy.md index 5106986fce..c69e2cb299 100644 --- a/docs/en/Multi-Tenancy.md +++ b/docs/en/Multi-Tenancy.md @@ -307,7 +307,10 @@ Volo.Abp.AspNetCore.MultiTenancy package adds following tenant resolvers to dete * **HeaderTenantResolver**: Tries to find current tenant id from HTTP header. Header name is "__tenant" by default. * **CookieTenantResolver**: Tries to find current tenant id from cookie values. Cookie name is "__tenant" by default. -> If you use nginx as a reverse proxy server, please note that if `TenantKey` contains an underscore, there may be a problem, please refer to: http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers +> If you use nginx as a reverse proxy server, please note that if `TenantKey` contains an underscore or other special characters, there may be a problem, please refer to: +http://nginx.org/en/docs/http/ngx_http_core_module.html#ignore_invalid_headers +http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers + "__tenant" parameter name can be changed using AspNetCoreMultiTenancyOptions. Example: diff --git a/docs/zh-Hans/Multi-Tenancy.md b/docs/zh-Hans/Multi-Tenancy.md index e13e6cb72a..f42fd73454 100644 --- a/docs/zh-Hans/Multi-Tenancy.md +++ b/docs/zh-Hans/Multi-Tenancy.md @@ -308,7 +308,9 @@ Volo.Abp.AspNetCore.MultiTenancy 添加了下面这些租户解析器,从当前W * **HeaderTenantResolver**: 尝试从HTTP header中获取当前租户,默认的header名称是"__tenant". * **CookieTenantResolver**: 尝试从当前cookie中获取当前租户.默认的Cookie名称是"__tenant". -> 如果你使用nginx作为反向代理服务器,请注意如果`TenantKey`包含下划线可能存在问题, 请参考: http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers +> 如果你使用nginx作为反向代理服务器,请注意如果`TenantKey`包含下划线或其他特殊字符可能存在问题, 请参考: +http://nginx.org/en/docs/http/ngx_http_core_module.html#ignore_invalid_headers +http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers 可以使用AspNetCoreMultiTenancyOptions修改默认的参数名"__tenant".例如: