Opened 9 years ago
Closed 9 years ago
#988 closed defect (invalid)
stuck by below,here is my code please help me
Reported by: | 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;
}
}
Note:
See TracTickets
for help on using tickets.
You've missed space after the "if" directive. Please use the mailing list for further questions.