|
|
server {
listen 80;
server_name ~^(www\.)?(?<domain>.+)\..+$;
index index.php index.html index.htm;
location / {
default_type text/html;
proxy_cache amproxy;
subs_filter_types text/css text/xml;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Referer http://$domain.xxx.com;
proxy_set_header Host $domain.xxx.com;
proxy_pass http://$domain.xxx.com;
proxy_set_header Accept-Encoding "";
}
}
这个配置实现不了呢!高手帮忙看看。 |
|