Passenger新版本request_uri header自动转码的问题
Posted by HoLin on January 21st, 2010 filed in 部署与优化Nginx access.log :
127.0.0.1 - - [21/Jan/2010:21:13:58 +0800] “GET /notes/Books+%2B+Online+Video+%3D+Vooks%3A+Watchable%2C+Readable%2C+%26+Very+Cool HTTP/1.1″ 304 0 “-” “Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7″
到Rails之后log/production.log:
Completed in 123ms (View: 8, DB: 62) | 200 OK [http://i/notes/Books+++Online+Video+=+Vooks:+Watchable,+Readable,+&+Very+Cool]
url被自动decode了,在我们的项目中并不想要这样的结果。
网上查了很多资料,Apache版本有类似 AllowEncodedSlashes 的指令。Nginx暂时没有。
对比了passenger-2.2.4和passenger-2.2.9,在文件ext/nginx/Configuration.c中有一行代码和这个相关。
2.2.9:
DEFINE_VAR_TO_PASS(”REQUEST_URI”, “$uri$is_args$args”);
2.2.4
DEFINE_VAR_TO_PASS(”REQUEST_URI”, “$request_uri”);
用2.2.4的替换2.2.9的,重新编译就可以了。
No related posts.
July 22nd, 2010 at 5:03 PM
Buy:Lumigan.Zyban.Petcam (Metacam) Oral Suspension.Nexium.Mega Hoodia.Valtrex.Zovirax.Accutane.Synthroid.Arimidex.Actos.100% Pure Okinawan Coral Calcium.Retin-A.Prednisolone.Human Growth Hormone.Prevacid….
December 21st, 2010 at 2:51 PM
buy viagra canada…
Buygeneric drugs…
December 24th, 2010 at 2:13 AM
Cialis UK…
Buynow it…
December 25th, 2010 at 1:04 PM
abilify and siezures…
Buynow…
December 28th, 2010 at 12:02 AM
Accutane@official.site” rel=”nofollow”>.…
Buywithout prescription…
December 29th, 2010 at 1:30 PM
aggrenox@1.now” rel=”nofollow”>.…
Buygeneric meds…
December 29th, 2010 at 6:30 PM
Aldactone@official.site” rel=”nofollow”>.…
Buygeneric drugs…
December 29th, 2010 at 7:33 PM
cost@of.alesse” rel=”nofollow”>..…
Buyit now…
January 3rd, 2011 at 7:21 AM
cipro@250.mg” rel=”nofollow”>..…
Buygeneric meds…
January 4th, 2011 at 11:35 AM
abilify@anxiety.now” rel=”nofollow”>.…
Buygeneric drugs…
January 9th, 2011 at 3:16 PM
i@am.pregnant.how.often.can.i.take.25mg.of.phenergan.safely” rel=”nofollow”>……
Buygeneric drugs…
January 21st, 2011 at 5:47 PM
Zyrtec@official.site” rel=”nofollow”>……
Buyno prescription…
February 5th, 2011 at 1:24 PM
zofran odt…
Buynow it…
February 6th, 2011 at 11:19 PM
Clindamycin…
Buywithout prescription…
February 7th, 2011 at 8:19 PM
Xalatan…
Buywithout prescription…
February 7th, 2011 at 8:52 PM
zantac renal dosing…
Buygeneric meds…
March 3rd, 2011 at 2:06 PM
Zyrtec…
Buyno prescription…
March 3rd, 2011 at 3:02 PM
buy liposomal lidocaine 4% cream maxilene…
Buywithout prescription…
March 3rd, 2011 at 3:49 PM
Zoloft…
Buyit now…
March 4th, 2011 at 2:37 AM
zyrtec anticolinergici effect…
Buyno prescription…
March 4th, 2011 at 4:23 AM
can you take zoloft and blood pressure medication together…
Buynow…
March 4th, 2011 at 5:32 PM
gilbert’s syndrome tylenol…
Buygeneric meds…
March 4th, 2011 at 7:50 PM
Zyrtec…
Buygeneric meds…
March 5th, 2011 at 4:25 PM
Pyridium…
Buygeneric drugs…
March 5th, 2011 at 5:37 PM
side effect of zoloft…
Buyno prescription…
March 5th, 2011 at 11:14 PM
stopped taking prozac realized i like him…
Buygeneric drugs…
March 6th, 2011 at 6:21 PM
dermatological side effects of rogaine…
Buywithout prescription…
March 6th, 2011 at 11:48 PM
Prozac…
Buynow it…
March 7th, 2011 at 2:05 AM
provera 10 days perimenopause…
Buygeneric drugs…
March 9th, 2011 at 3:38 AM
Pyrantel Pamoate…
Buygeneric meds…
March 11th, 2011 at 7:16 AM
Retin A…
Buygeneric meds…
March 29th, 2011 at 12:17 PM
Tetracycline@Tetracycline.Tetracycline” rel=”nofollow”>……
Buyno prescription…
March 31st, 2011 at 7:08 AM
Yaz…
Buygeneric pills…
March 31st, 2011 at 9:54 AM
Cymbalta@Cymbalta.Cymbalta” rel=”nofollow”>.…
Buyit now…
March 31st, 2011 at 6:10 PM
Coreg@Coreg.Coreg” rel=”nofollow”>……
Buywithout prescription…
March 31st, 2011 at 10:23 PM
Claritin@Claritin.Claritin” rel=”nofollow”>..…
Buyit now…
April 1st, 2011 at 11:22 PM
38@year.old.male.prinivil.review” rel=”nofollow”>……
Buygeneric drugs…
April 2nd, 2011 at 11:10 PM
..…
Buygeneric drugs…
April 2nd, 2011 at 11:58 PM
……
Buydrugs without prescription…
April 4th, 2011 at 3:06 AM
dried@neem.leaves” rel=”nofollow”>……
Buywithout prescription…
April 4th, 2011 at 3:26 AM
crestor@statin.drugs” rel=”nofollow”>……
Buyit now…
April 4th, 2011 at 7:25 AM
man@plan.a.and.b” rel=”nofollow”>..…
Buygeneric drugs…
April 4th, 2011 at 8:03 PM
……
Buygeneric pills…
April 5th, 2011 at 11:49 AM
.…
Buygeneric drugs…
April 5th, 2011 at 6:31 PM
methotrexate@and.placenta.acretia” rel=”nofollow”>.…
Buygeneric drugs…
April 5th, 2011 at 8:12 PM
motrin@for.61.pounds” rel=”nofollow”>……
Buygeneric meds…
April 6th, 2011 at 9:18 PM
.…
Buyno prescription…