server {
listen 80;
server_name estate.yoohouse.com admin.yoohouse.com yoohouse.com;
access_log /logs/lb_dynamic.log main;
add_header servertag hawk01-002-lb;
location / {
if ($host ~ ^yoohouse\.com$) {
rewrite ^/(.*)$ http:///$1 permanent;
}
if (!-e $request_filename) {
rewrite ^(.+)/$ $1 permanent;
rewrite /estate/searchnewhouse /xinfang/search permanent;
rewrite ^/sell$ /sale permanent;
rewrite ^/rent$ /zufang permanent;
rewrite ^/estate$ /loupan permanent;
}
include proxy.conf;
proxy_pass http://y_server;
}
阅读(570) | 评论(0) | 转发(0) |