nginx反向代理部分代码:



upstream php_server_pool1 {  

server IP:80;  

}  

server {  

   listen 80;  

   server_name www.123.com 123.com;  

location /  

{ proxy_pass http://php_server_pool1;  

  proxy_set_header Host $host;  

  proxy_set_header X-Forwarded-For $remote_addr;  

}  

access_log /data1/logs/123access.com.log;  

}