Re: alias vs root in regex location

2015-04-11 Thread Francis Daly
On Fri, Apr 10, 2015 at 07:09:43PM -0400, avi9526 wrote: Hi there, > Trying to serve nagios web GUI through nginx. > location ~ "^/nagios/(.+?\.php)(/.*)?$" > { > alias "/usr/share/nagios3/htdocs/"; > try_files $1 $uri $uri/ /nagios/index.php; > location ~* ^/cgi-b

alias vs root in regex location

2015-04-10 Thread avi9526
Trying to serve nagios web GUI through nginx. Part of config: … location ~ "^/nagios/(.+?\.php)(/.*)?$" { alias "/usr/share/nagios3/htdocs/"; try_files $1 $uri $uri/ /nagios/index.php; #rewrite"^/nagios/(.+?\.php)(/.*)?$"/$1$2