http {
include mime.types;
default_type application/octet-stream;
#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;
server {
listen 80;
server_name jump.kanking;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://localhost:8080;
#rewrite ^/ https://union-click.jd.com/jdc?d=lDEIEO;
}
来大神解答
https://q.cnblogs.com/q/94070/
那个帖子就是我发的 你给我发这个连接 扯淡呢 擦 ,根本没解决 tomcat 已经配置成功可以访问问的是 时间太久了 一块一慢 咋办
@skateweb: 知道是你发的啊,那不给你回答了吗
@MalcolmF: 问题是还没解决啊 一块一慢
@MalcolmF: 现在一块一慢 咋弄啊 弄不明白啊
@MalcolmF: 我就只我我的本机啊没有那么多的服务器啊
@skateweb: 那你分发了几台服务器? 只有一台的话不应该一快一慢
@MalcolmF: http {
include mime.types;
default_type application/octet-stream;
#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;
server {
listen 80;
server_name jump.kanking.net;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://localhost:8080;
#rewrite ^/ https://union-click.jd.com/jdc?d=lDEIEO;
}
只有这一个啊
@MalcolmF: 服务器配置都没有动过 用rewrite 访问 速度很快的 但是没域名 用proxy_pass就一次快 一次慢的 求解大神