In an nginx server block:
server {
listen 80;
server_name foo.com bar.com car.com;
...
}
How do I redirect bar.com/site
and only bar.com/site
to bar.com/
- the other hosts should remain unaffected. So foo.com/site
and car.com/site
should work as normal.
or different server locations with include of shared zones