I want to do nginx setup for handing two project with same domain.
Example domain: example.com
- Angular project should run with
example.com - magento2 project should run with
example.com/shop
I tried the code below, but its not working.
location /shop {
alias /var/www/www.example.com/shop/;
index index.html;
try_files $uri $uri/
autoindex on;
}
Can please someone help me to do this.