ruby on rails - How do I prevent all action specific invocations in nginx -
i want write mapping rule prevent following routing errors in rails app front-ended nginx.
should use following rule prevent errors listed below?
if ($request_uri ~* "(*.action)" ) { return 444; }
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/index!download.action"):
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/index!execute.action"):
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/index!wcindex.action"):
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/index!oaindex.action"):
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/userinfoaction.action"):
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/admin/install!license.action"):
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/admin/index.action"):
production.log-20150419:actioncontroller::routingerror (no route matches [head] "/license!getexpiredateofdays.action"):
Comments
Post a Comment