Opened 8 years ago

Closed 8 years ago

#988 closed defect (invalid)

stuck by below,here is my code please help me

Reported by: lilong880901@… Owned by:
Priority: major Milestone: 1.11
Component: documentation Version: 1.6.x
Keywords: Cc:
uname -a: longli
nginx -V: Nginx/1.62

Description

nginx cant rewrite,it give me error in the log below

2016/05/31 00:32:16 [emerg] 21500#25548: unknown directive "if(!-e" in C:\phpStudy\nginx/conf/nginx.conf:68

location / {

index index.html index.htm index.php l.php;
if(!-e $request_filename){

rewrite (.*)dive_club\/(.*)\/(.*)$ $1dive_club/index.php?r=$2/$3;

}

}

Change History (1)

comment:1 by Maxim Dounin, 8 years ago

Resolution: invalid
Status: newclosed

You've missed space after the "if" directive. Please use the mailing list for further questions.

Note: See TracTickets for help on using tickets.