Nginx 配置
静态服务器
server {
listen 80;
server_name b.test.com;
root /data/www/test/;
index index.html index.htm;
}反向代理
server {
listen 80;
server_name b.test.com;
location / {
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://10.0.100.63;
}
}负载均衡
算法
SSL
PHP-FPM
缓存
正则规则
最后更新于