rewrite修改为
rewrite (.*) http://www.baidu.com;
然后重启nginx服务
rewrite (.*) http://www.baidu.com;
rewrite修改为
rewrite (.*) http://www.baidu.com;
然后重启nginx服务
本地设置的80端口监听百度的地址也可以
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
proxy_pass http://baidu.com;
proxy_redirect default;
root /opt/installs/tomcat8.0/webapps/;
index index.html index.htm;
}