{"action":"closed","issue":{"url":"https://api.github.com/repos/panique/mini/issues/55","labels_url":"https://api.github.com/repos/panique/mini/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/panique/mini/issues/55/comments","events_url":"https://api.github.com/repos/panique/mini/issues/55/events","html_url":"https://github.com/panique/mini/issues/55","id":28382950,"number":55,"title":"[documentation] Can anyone help with nginx rewrites?","user":{"login":"digitaltoast","id":230370,"avatar_url":"https://avatars.githubusercontent.com/u/230370?v=3","gravatar_id":"","url":"https://api.github.com/users/digitaltoast","html_url":"https://github.com/digitaltoast","followers_url":"https://api.github.com/users/digitaltoast/followers","following_url":"https://api.github.com/users/digitaltoast/following{/other_user}","gists_url":"https://api.github.com/users/digitaltoast/gists{/gist_id}","starred_url":"https://api.github.com/users/digitaltoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitaltoast/subscriptions","organizations_url":"https://api.github.com/users/digitaltoast/orgs","repos_url":"https://api.github.com/users/digitaltoast/repos","events_url":"https://api.github.com/users/digitaltoast/events{/privacy}","received_events_url":"https://api.github.com/users/digitaltoast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-02-27T00:14:12Z","updated_at":"2015-02-28T12:19:25Z","closed_at":"2015-02-28T12:19:25Z","body":"Great looking and educational framework but I'm really struggling here and would appreciate any passing nginxexpers having a look.\r\n\r\nI've played with some other basic MVC frameworks and never had the problem where a normal nginx try_file wouldn't work.\r\n\r\nSo, for example:\r\n\r\n\tlocation /manage/login {\r\n\t\t try_files $uri $uri/ /manage/login/index.php;\r\n\t}\r\n\r\n\r\nBut, of course, I can see from the .htaccess and application.php that this uses ?url= GET arguments. \r\n\r\nSo, 5 hours of reading http://wiki.nginx.org/HttpCoreModule#.24arg_PARAMETER and http://wiki.nginx.org/HttpCoreModule#.24args and http://nginx.org/en/docs/http/converting_rewrite_rules.html I've tried various of the following.... (the install folder is in manage/login\r\n\r\nlocation /manage/login {\r\n\t\t try_files $uri $uri/ /manage/login/index.php?url=$uri;\r\n\t}\r\n\r\nalso \r\n\r\ntry_files $uri $uri/ /manage/login/index.php?url=$uri;\r\ntry_files $uri $uri/ /manage/login/index.php?url=$args;\r\ntry_files $uri $uri/ /manage/login/index.php?url=$uri$args;\r\ntry_files $uri $uri/ /manage/login/index.php?$args;\r\n\r\nand other combinations of the above. No matter what I put, it always says:\r\n\r\nYou are in the controller home, using the method index()\r\nYou are in the View: application/views/home/index.php\r\n\r\nI found another lost soul at http://forum.nginx.org/read.php?2,247614,247647#msg-247647 but again, he wasn't having much luck."}}