Nginx + Tomcat 搜索中文乱码的问题
2016-01-07 16:41
351 查看
摘要: Nginx + Tomcat 搜索中文乱码的问题
1. 在Nginx 的conf/nginx.conf 设置使用的字符集。
server {
.....
charset utf-8,gbk;
}
2. 在Tomcat的 conf/server.xml 设置字符集
.....
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
......
1. 在Nginx 的conf/nginx.conf 设置使用的字符集。
server {
.....
charset utf-8,gbk;
}
2. 在Tomcat的 conf/server.xml 设置字符集
.....
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
......
相关文章推荐
- java-模拟tomcat服务器
- i-jetty环境搭配与编译
- nginx代理指定目录
- 实现单Tomcat多Server配置
- 生产环境下的Tomcat配置
- 访问Nginx发生SSL connection error的一种情况
- Linux部署Tomcat服务器
- Nginx+Naxsi部署专业级Web应用防火墙
- jenkins------结合maven将svn项目自动部署到tomcat下
- 如何搞定tomcat这只喵~
- CentOS 6.2实战部署Nginx+MySQL+PHP
- nginx中http核心模块的配置指令2
- nginx中http核心模块的配置指令3
- nginx中http核心模块的配置指令4
- nginx中http的fastcgi模块的配置指令1
- Nginx 学习笔记(一)
- 网站502与504错误分析
- 艰难完成 nginx + puma 部署 rails 4的详细记录