root /var/www/serve/il/gcc/public;
etag off;
add_header Pragma "public";
add_header Cache-Control "public";
brotli on;
brotli_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/octet-stream;
gzip on;
gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/octet-stream;
expires max;
location ^~ /india {
alias /var/www/serve/il/india/public;
index index.php;
try_files $uri $uri/ /index.php?$args;
}
location / {
root /var/www/serve/il/gcc/public;
index index.php;
try_files $uri $uri/ /index.php?$args;
}
include /etc/nginx/php.inc;
}
There are two projects with different roots. I am trying to get URL as
https://example.com/en-gc/site/index
and
https://example.com/en-in/site/index
I have tried various solutions but nothing seems to be working for this.