{"action":"created","comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/22781489","id":22781489,"diff_hunk":"@@ -212,6 +214,28 @@ def config(self, args):\n                     d[\"REWRITERULE\"] = \"\"\n                 d[\"NOW\"] = str(datetime.now())\n \n+            if server == \"apache-fcgi\":\n+                c = file(self.ctx.dir / \"etc\" /\n+                         \"apache-mod_proxy_fcgi.conf.template\").read()\n+\n+                if settings.APPLICATION_SERVER != settings.FASTCGITCP:\n+                    self.ctx.die(\n+                        679, \"Apache mod_proxy_fcgi requires fastcgi-tcp\")\n+                fastcgi_external = '%s:%s' % (\n+                    settings.APPLICATION_SERVER_HOST,\n+                    settings.APPLICATION_SERVER_PORT)\n+                d[\"FASTCGI_EXTERNAL\"] = fastcgi_external\n+\n+                # Forcing a prefix for the entire server makes it easier to\n+                # setup the proxy redirects\n+                if d[\"FORCE_SCRIPT_NAME\"] == '/':\n+                    d[\"FORCE_SCRIPT_NAME\"] = '/omero'","path":"components/tools/OmeroPy/src/omero/plugins/web.py","position":41,"original_position":41,"commit_id":"80f3d64d836a73b48a04b8563bd561f603e99b7e","original_commit_id":"80f3d64d836a73b48a04b8563bd561f603e99b7e","user":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"body":"You'd need separate `RewriteRule` and/or `ProxyPass` statements for each prefix (webclient, webgateway, webadmin, etc), otherwise requests for `/static` will be treated as a cgi request.","created_at":"2015-01-12T09:55:27Z","updated_at":"2015-01-12T09:55:27Z","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3326#discussion_r22781489","pull_request_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326","_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/22781489"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/3326#discussion_r22781489"},"pull_request":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326"}}},"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326","id":27094197,"html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3326","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3326.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3326.patch","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3326","number":3326,"state":"open","locked":false,"title":"Apache 2.4 mod_proxy_fcgi template generation","user":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"body":"Support for generating a configuration file for Apache 2.4 with mod_proxy_fcgi (should be installed by default).\r\nhttps://trello.com/c/ROD6R0L7/180-omero-web-custom-prefix\r\nhttps://trello.com/c/GLXxdWyl/128-server-installation-doc-and-supported-versions\r\n\r\nTesting: `dist/bin/omero web config apache-fcgi`\r\nwith the usual config variations of `force_script_name` and `static_url`\r\n","created_at":"2015-01-09T11:26:42Z","updated_at":"2015-01-12T09:55:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8eff67d6c67e6d3e133fe10629604fbaa3366d4b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326/commits","review_comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326/comments","review_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3326/comments","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/80f3d64d836a73b48a04b8563bd561f603e99b7e","head":{"label":"manics:apache_mod_proxy_fcgi","ref":"apache_mod_proxy_fcgi","sha":"80f3d64d836a73b48a04b8563bd561f603e99b7e","user":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"repo":{"id":6123531,"name":"openmicroscopy","full_name":"manics/openmicroscopy","owner":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manics/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":true,"url":"https://api.github.com/repos/manics/openmicroscopy","forks_url":"https://api.github.com/repos/manics/openmicroscopy/forks","keys_url":"https://api.github.com/repos/manics/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manics/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manics/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/manics/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/manics/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/manics/openmicroscopy/events","assignees_url":"https://api.github.com/repos/manics/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/manics/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/manics/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/manics/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manics/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manics/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/manics/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manics/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/manics/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/manics/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/manics/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/manics/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/manics/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/manics/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/manics/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/manics/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/manics/openmicroscopy/issues/comments/{number}","contents_url":"https://api.github.com/repos/manics/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/manics/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manics/openmicroscopy/merges","archive_url":"https://api.github.com/repos/manics/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manics/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/manics/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/manics/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/manics/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/manics/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manics/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/manics/openmicroscopy/releases{/id}","created_at":"2012-10-08T11:43:48Z","updated_at":"2014-10-22T14:24:45Z","pushed_at":"2015-01-09T11:22:51Z","git_url":"git://github.com/manics/openmicroscopy.git","ssh_url":"git@github.com:manics/openmicroscopy.git","clone_url":"https://github.com/manics/openmicroscopy.git","svn_url":"https://github.com/manics/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":1951320,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"openmicroscopy:develop","ref":"develop","sha":"cbad866942e87da7fcc2e2acae87151fe682e1ad","user":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"repo":{"id":2228226,"name":"openmicroscopy","full_name":"openmicroscopy/openmicroscopy","owner":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmicroscopy/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":false,"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy","forks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/forks","keys_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/events","assignees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/{number}","contents_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/merges","archive_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/releases{/id}","created_at":"2011-08-18T14:26:02Z","updated_at":"2015-01-12T07:11:04Z","pushed_at":"2015-01-12T07:11:04Z","git_url":"git://github.com/openmicroscopy/openmicroscopy.git","ssh_url":"git@github.com:openmicroscopy/openmicroscopy.git","clone_url":"https://github.com/openmicroscopy/openmicroscopy.git","svn_url":"https://github.com/openmicroscopy/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":2131204,"stargazers_count":63,"watchers_count":63,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":30,"forks":59,"open_issues":30,"watchers":63,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/3326"},"issue":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3326"},"comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3326/comments"},"review_comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326/comments"},"review_comment":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3326/commits"},"statuses":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/80f3d64d836a73b48a04b8563bd561f603e99b7e"}}}}