社区
Web开发应用服务器
帖子详情
nginx+tomcat jsp页面显示不完全
feng8008
2010-04-23 09:06:14
我的jsp页面有时显示不完全。只显示一部分。
服务器是nginx+tomcat.
网址
http://www.llb.cn
...全文
638
5
打赏
收藏
nginx+tomcat jsp页面显示不完全
我的jsp页面有时显示不完全。只显示一部分。 服务器是nginx+tomcat. 网址 http://www.llb.cn
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
xiaoya13144111
2012-10-23
打赏
举报
回复
肿么没人回复,求解
feng8008
2010-05-15
打赏
举报
回复
附上我的配置文件:
#user nobody;
user nobody nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#error_log off;
#pid logs/nginx.pid;
worker_rlimit_nofile 51200;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
keepalive_timeout 185;
tcp_nodelay on;
#fastcgi_connect_timeout 300;
#fastcgi_send_timeout 300;
#fastcgi_read_timeout 300;
#fastcgi_buffer_size 64k;
#fastcgi_buffers 4 64k;
#fastcgi_busy_buffers_size 128k;
#fastcgi_temp_file_write_size 128k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
#sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
#keepalive_timeout 65;
#gzip on;
upstream backend
{
server 220.113.41.109:11222;
server 220.113.41.109:11333;
ip_hash;
}
server {
listen 80;
server_name 220.113.41.109;
#charset koi8-r;
#access_log logs/host.access.log main;
access_log off;
location / {
root html;
index index.jsp index.html index.htm;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://backend;
}
#location /NginxStatus {
# stub_status on;
# access_log on;
#auth_basic "NginxStatus";
#}
location ~* \.(gif|jpg|png|swf|flv|zip|rar)$ {
valid_referers none blocked www.llb.cn *.llb.cn llb.cn www.ccl.cn www.gaose.cn www.rit.cn www.fae.cn www.rits.cn;
if ($invalid_referer) {
return 500;
}
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://backend;
expires 30d;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443;
# server_name localhost;
# ssl on;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_timeout 5m;
# ssl_protocols SSLv2 SSLv3 TLSv1;
# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
feng8008
2010-05-13
打赏
举报
回复
http://www.llb.cn/index.jsp
请大家帮忙看一下。不胜感激!!
feng8008
2010-04-23
打赏
举报
回复
有知道的吗?
Linux系统安装部署jdk+
Tomcat
+Mysql+
Nginx
+
Tomcat
集群搭建+项目发布
课程视频中出现的所有配套软件均可下载,下载地址笔记中有! 1. Linux系统安装以及远程操作工具安装 2.... Mysql安装以及开发远程访问 6、
Nginx
概述以及使用并通过
Nginx
实现
Tomcat
集群的搭建等功能
Nginx
+
tomcat
集群
Nginx
+
tomcat
集群 定义:在测试环境中有多个
tomcat
运行这一个项目,需要
nginx
管理 2特点:1,增加项目访问能力 2,增加服务器性能 3,实现不同负载均衡 3负载均衡:根据每台服务器的性能分配其能承受住的访问压力
Nginx
+
tomcat
集群 1,在
nginx
安装目录将他停掉即/usr/local/
nginx
目录将
nginx
停掉./
nginx
-s stop 2,进入conf目录,注意是安装目录,即/usr/local/
nginx
3,通过 vi
nginx
.conf 打开ng
Nginx
+
Tomcat
配置https
自已公司内部的系统,需要修改为https访问,使用
Nginx
+
Tomcat
,此文记录了整个过程,因为系统使用了jsp,而且页面中大量使用了request.getScheme()+“”+request.getServerPort()来组合URL进行数据的提交,导致最终界面中出现了http//协议,为了不改动代码,最终方案采用
nginx
和
tomcat
都开启https,由
nginx
转发到
tomcat
的https上,最终完美搭建成功。...
Nginx
+
tomcat
的搭建
Nginx
+
tomcat
服务配置
Nginx
+
tomcat
(一)
Nginx
基本介绍与常用功能
一、
Nginx
能做什么 1.HTTP 服务器(动静分离) 例如
nginx
+
tomcat
中,可以将动态资源交给
tomcat
,而静态资源则交给
Nginx
,这样可以减轻
tomcat
的负担,增加效率。 2. 反向代理 3. 负载均衡 4. 正向代理 二、HTTP 服务器
Nginx
本身也是一个静态资源的服务器,当只有静态资源的时候,就可以使用
Nginx
来做服务器,同时现在也很流行动静分离,就可以通过
Nginx
来实现,首先看看...
Web开发应用服务器
5,655
社区成员
20,181
社区内容
发帖
与我相关
我的任务
Web开发应用服务器
Web开发应用服务器相关讨论专区
复制链接
扫一扫
分享
社区描述
Web开发应用服务器相关讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章