The original address is http://aaa.com/aaa.swf
The new address is http://bbb.com/bbb (no .swf, the program automatically loads it)
In this case, how can we achieve automatic loading of the new address (not jump) when accessing the source address?
走同样的路,发现不同的人生
location ~ ^/aaa.swf { root /var/www/bbb.com # the local file path of bbb # use rewrite to map aaa.swf to bbb }
If they are not on the same host, it can be achieved through a reverse proxy
Add the following statement in the bbb.com的server {} block.
bbb.com
server {}
location / { if ($uri = /bbb) { rewrite ^/bbb$ /aaa.swf break; proxy_pass http://aaa.com; } }
If they are not on the same host, it can be achieved through a reverse proxy
Add the following statement in the
bbb.com
的server {}
block.