-
通过nginx实现对tomcat服务器的反向代理(若有不明白之处,欢迎随时向我咨询)
资源介绍
我下载的niginx版本是nginx-1.5.12
主要配置是在:D:\nginx-1.5.12\conf目录下的nginx.conf文件做配置
代码如下:
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
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"';