{"action":"opened","issue":{"url":"https://api.github.com/repos/foundeo/ubuntu-nginx-lucee/issues/16","repository_url":"https://api.github.com/repos/foundeo/ubuntu-nginx-lucee","labels_url":"https://api.github.com/repos/foundeo/ubuntu-nginx-lucee/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/foundeo/ubuntu-nginx-lucee/issues/16/comments","events_url":"https://api.github.com/repos/foundeo/ubuntu-nginx-lucee/issues/16/events","html_url":"https://github.com/foundeo/ubuntu-nginx-lucee/issues/16","id":190718213,"number":16,"title":"Proxy for SES locations","user":{"login":"dswitzer","id":900497,"avatar_url":"https://avatars.githubusercontent.com/u/900497?v=3","gravatar_id":"","url":"https://api.github.com/users/dswitzer","html_url":"https://github.com/dswitzer","followers_url":"https://api.github.com/users/dswitzer/followers","following_url":"https://api.github.com/users/dswitzer/following{/other_user}","gists_url":"https://api.github.com/users/dswitzer/gists{/gist_id}","starred_url":"https://api.github.com/users/dswitzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswitzer/subscriptions","organizations_url":"https://api.github.com/users/dswitzer/orgs","repos_url":"https://api.github.com/users/dswitzer/repos","events_url":"https://api.github.com/users/dswitzer/events{/privacy}","received_events_url":"https://api.github.com/users/dswitzer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-21T13:33:43Z","updated_at":"2016-11-21T13:33:43Z","closed_at":null,"body":"I've created a fork of this project for CentOS. I've got a couple of improvements, but unfortunately I've had to make a lot of changes due to the differences between CentOS and Ubuntu.\r\n\r\nI'm going to try to fork the project and migrate my fixes to both repos.\r\n\r\nIn the meantime, I did discover a bug in the SES routing, see this change:\r\n\r\nhttps://github.com/dswitzer/centos7-nginx-lucee/commit/075ca1836bbb3db1a68a5d075c9e16f9e9c928ed\r\n\r\nThe problem is in the `etc/nginx/lucee.conf` file. The proxy is only loaded if the script ends in `.cfm` or `.cfc`, so if you have URLs like `/index.cfm/ses/safe/urls/` the proxy is never loaded, so the URL rewrite rule is never applied.\r\n\r\nThe fix I came up with is pretty simple\r\n\r\n```\r\n#match cfm or cfc files and proxy them off to tomcat\r\nlocation ~* (\\.cfm(\\/|$)|\\.cfc$) {\r\n  include lucee-proxy.conf;\r\n}\r\n```\r\n\r\nBasically the proxy is loaded if the template ends in `.cfm` or matches the pattern `.cfm/`. "}}
{"actor":{"display_login":"dswitzer"}}