<div dir="ltr"><div>Hi,</div><div><br></div><div>I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core). I am setting up the Nginx subsite configuration. The details are as follows.</div><div><br></div><div>[root@developerportal www]# pwd<br>/var/www<br>[root@developerportal www]# ls -l<br>total 0<br>drwxr-xr-x 2 root  root   6 Apr  2 18:44 cgi-bin<br>drwxr-xr-x 3 nginx nginx 64 Jun 10 13:52 <b>drupal</b><br>drwxr-xr-x 3 nginx nginx 28 Aug  1 12:32 <b>drupalsubsite</b><br>drwxr-xr-x 2 root  root   6 Apr  2 18:44 html<br>[root@developerportal www]#<br></div><div>[root@developerportal web]# pwd<br>/var/www/drupal/marketplace-v2/mpV2/web<br>[root@developerportal web]# ls -l<br>total 73576<br>-rwxr-xr-x  1 nginx nginx      385 Jul 28 18:25 autoload.php<br>drwxrwxrwx 12 nginx nginx     4096 Jun 11 14:21 core<br>-rw-r--r--  1 nginx nginx 75310608 Aug  1 11:18 db.sql<br>-rwxr-xr-x  1 nginx nginx      549 Jul 26 18:47 index.php<br>drwxrwxrwx 14 nginx nginx      286 Jul 28 18:25 libraries<br>drwxrwxrwx  6 nginx nginx      101 Jul 26 18:47 modules<br>drwxrwxrwx  2 nginx nginx       22 Jul 26 18:47 profiles<br>lrwxrwxrwx  1 nginx nginx       47 Aug  1 16:23 <b>retail</b> -> /var/www/drupalsubsite/marketplace-v2/mpV2/web/<br>-rwxr-xr-x  1 nginx nginx     1594 Jul 26 18:47 robots.txt<br>drwxrwxrwx  3 nginx nginx      112 Jul 26 18:47 sites<br>drwxrwxrwx  4 nginx nginx       69 Jul 26 18:47 themes<br>-rwxr-xr-x  1 nginx nginx      848 Jul 26 18:47 update.php<br>-rwxr-xr-x  1 nginx nginx     4566 Jul 26 18:47 web.config<br>[root@developerportal web]#<br></div><div><br></div><div>I have set the below in /etc/nginx/nginx.conf</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">location ~ ^/retail/(.*) {<br>    return 301 /var/www/drupalsubsite/marketplace-v2/mpV2/web;<br>   index index.php;<br>}</blockquote><div><br></div><div>When I hit  <a href="https://developerportal.example.com/retail">https://developerportal.example.com/retail</a></div><div>I get <a href="https://developerportal.example.com/var/www/drupalsubsite/marketplace-v2/mpV2/web">https://developerportal.example.com/var/www/drupalsubsite/marketplace-v2/mpV2/web</a> in the browser I get  The requested page could not be found instead of serving the web page.<br></div><div><br></div><div>When I hit  <a href="https://developerportal.example.com/retail/user">https://developerportal.example.com/retail/user</a></div><div>I get <a href="https://developerportal.example.com/var/www/drupalsubsite/marketplace-v2/mpV2/web">https://developerportal.example.com/var/www/drupalsubsite/marketplace-v2/mpV2/web</a> in the browser I get  The requested page could not be found instead of serving the web page.<br></div><div><br></div><div>When I hit <a href="https://developerportal.example.com/retail/user/login">https://developerportal.example.com/retail/user/login</a></div><div>I get <a href="https://developerportal.example.com/var/www/drupalsubsite/marketplace-v2/mpV2/web">https://developerportal.example.com/var/www/drupalsubsite/marketplace-v2/mpV2/web</a> in the browser I get  The requested page could not be found instead of serving the web page.<br></div><div><br></div><div>Any help will be highly appreciated. Please let me know if you need any additional configuration and I look forward to hearing from you soon.</div><div>Thanks in advance.<br></div><div><br></div><div>Best Regards,</div><div><br></div><div>Kaushal</div><div><br></div></div>