Nginx将通过IP访问重定向
server {
listen 80 default_server;
server_name localhost;
location / {
rewrite ^ http://www.xxx.com/?from-xxx;
}
}
转载请注明原处
server {
listen 80 default_server;
server_name localhost;
location / {
rewrite ^ http://www.xxx.com/?from-xxx;
}
}