I would like to mask domain2.com/my-path/ with domain2.com (base URL).
domain2.com/my-path/
domain2.com
I have done the following and it works:
location = / {