- joyanhui2012-12-14金牌会员37158
自己写了一个 好像不对。。。。求教!- - server
- {
- listen 80;
- server_name 123.com *.123.com;
- index index.html index.htm index.php default.html default.htm default.php;
- location /
- {
- - if ( $host ~* (\b(?!www\b)\w+)\.\w+\.\w+ ) {
- set $subdomain $1;
- }
- - proxy_pass http://$subdomain.456.com/; #反代的网站
- - }
- access_log off;
- }
- 复制代码