Welcome! Log In Create A New Profile

Advanced

Re: rerwrite problem

January 12, 2010 10:29PM
if($host!='www.abc.com'){
rewrite ^/(.*)$ http://www.abc.com/$1 permanent;
}
why has this error
[emerg]: unknown directive "if($host!='www.abc.com')" in /etc/nginx/nginx.conf:110
configuration file /etc/nginx/nginx.conf test failed
Subject Author Posted

rerwrite problem

lnxa January 12, 2010 10:10PM

Re: rerwrite problem

lnxa January 12, 2010 10:20PM

Re: rerwrite problem

lnxa January 12, 2010 10:29PM

Re: rerwrite problem

Rob Schultz January 12, 2010 10:42PM

Re: rerwrite problem

lnxa January 12, 2010 10:59PM

Re: rerwrite problem

Daniele Melosi January 13, 2010 03:32AM

Re: rerwrite problem

Igor Sysoev January 13, 2010 04:36AM

Re: rerwrite problem

mokala March 05, 2012 10:43PM

Re: rerwrite problem

edogawaconan January 12, 2010 10:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready