#######nginx 配置文件 worker_processes 1;
events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream web_pools { server 10.0.0.7:80 weight=1 max_fails=1 fail_timeout=10s ; server 10.0.0.8:80 weight=1 max_fails=1 fail_timeout=10s ; } server { listen 80; server_name www.etiantian.org; location / { proxy_pass http://web_pools; proxy_set_header Host $host; } } server { listen 80; server_name bbs.etiantian.org; location / { proxy_pass http://web_pools; proxy_set_header Host $host; } } server { listen 80; server_name blog.etiantian.org; location / { proxy_pass http://web_pools; proxy_set_header Host $host; } }