Re: nginx subsite configuration not working

2020-08-02 Thread Kaushal Shriyan
On Sun, Aug 2, 2020 at 7:06 PM Miguel C wrote: > Looks like it's a Drupal (php) site just pointing it to index.php won't > work you need to have a back end for PHP I.E. php-fpm and setup nginx > to use fastcgi proxy. > > The exact config might be different depending on how urls are handled in

Re: nginx subsite configuration not working

2020-08-02 Thread Miguel C
Looks like it's a Drupal (php) site just pointing it to index.php won't work you need to have a back end for PHP I.E. php-fpm and setup nginx to use fastcgi proxy. The exact config might be different depending on how urls are handled in Drupal, I'm more familiar with WordPress, but I found thi

Re: nginx subsite configuration not working

2020-08-02 Thread Kaushal Shriyan
On Sun, Aug 2, 2020 at 5:18 AM Kaushal Shriyan wrote: > > > On Sat, Aug 1, 2020 at 10:42 PM Thomas Ward > wrote: > >> 301 Redirects don't work for full system paths because they are returned >> to the client saying "go here instead". It then interprets your path as a >> URI which doesn't exist

Re: nginx subsite configuration not working

2020-08-01 Thread Kaushal Shriyan
On Sat, Aug 1, 2020 at 10:42 PM Thomas Ward wrote: > 301 Redirects don't work for full system paths because they are returned > to the client saying "go here instead". It then interprets your path as a > URI which doesn't exist inside your site docroot. > > You might have meant to use `root` ins

Re: nginx subsite configuration not working

2020-08-01 Thread Thomas Ward
data directly from that directory at the path you are accessing it from on the client browser. Original Message From: Kaushal Shriyan Sent: Sat Aug 01 13:09:17 EDT 2020 To: nginx@nginx.org Subject: nginx subsite configuration not working Hi, I am running nginx version: ng

nginx subsite configuration not working

2020-08-01 Thread Kaushal Shriyan
Hi, 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. [root@developerportal www]# pwd /var/www [root@developerportal www]# ls -l total 0 drwxr-xr-x 2 root root 6 Apr 2 18:44 cgi-bin dr