Task #11724 (closed)
Opened 10 years ago
Closed 10 years ago
FastCgiWrapper ON doesn't work with FastCGI TCP
Reported by: | atarkowska | Owned by: | spli |
---|---|---|---|
Priority: | major | Milestone: | 5.0.0-rc1 |
Component: | Documentation | Version: | 4.4.9 |
Keywords: | n.a. | Cc: | web-team@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | OMERO 5 Beta 2 (1) |
Description
Reffering to the forum post https://www.openmicroscopy.org/community/viewtopic.php?f=5&t=7355#p13144 it looks like would be nice to add that to the doc. Our apache servers have that option turned off but would be nice to explain that in the doc.
Change History (8)
comment:1 Changed 10 years ago by spli
comment:2 Changed 10 years ago by spli
- Owner changed from atarkowska to spli
- Status changed from new to accepted
comment:3 Changed 10 years ago by spli
Might as well include docs for #11723 in the same PR.
comment:4 Changed 10 years ago by atarkowska
That would be great if you could update the doc.
My initial thought was to change nginx config as follow:
diff --git a/omero/sysadmins/unix/install-web.txt b/omero/sysadmins/unix/install-web.txt index 58282f7..75ae864 100644 --- a/omero/sysadmins/unix/install-web.txt +++ b/omero/sysadmins/unix/install-web.txt @@ -162,13 +162,17 @@ OMERO.web is quite straightforward. alias /usr/local/dev/openmicroscopy/dist/lib/python/omeroweb/static; } - location / { + location /omero { if (-f /usr/local/dev/openmicroscopy/dist/var/maintenance.html) { error_page 503 /maintenance.html; return 503; } fastcgi_pass 0.0.0.0:4080; - fastcgi_param PATH_INFO $fastcgi_script_name; + + fastcgi_split_path_info ^(/omero)(.*)$; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_INFO $fastcgi_script_name; + fastcgi_param REQUEST_METHOD $request_method; fastcgi_param QUERY_STRING $query_string; fastcgi_param CONTENT_TYPE $content_type;
and in the end add note why FORCE_SCRIPT_NAME has to be set
comment:5 Changed 10 years ago by spli
- Sprint set to OMERO 5 Beta 2 (1)
comment:6 Changed 10 years ago by hflynn
Can you get a PR open for this asap please so we have time to review it ready for the release? Thanks very much.
comment:7 Changed 10 years ago by spli
comment:8 Changed 10 years ago by spli
- Resolution set to fixed
- Status changed from accepted to closed
FastCgiWrapper is designed for running CGI scripts as different system user, but this conflicts with the FastCGIExternalServer used in OMERO since it tells Apache to let OMERO handle everything via a network socket (the filepath passed to FastCGIExternalServer just acts as an identifier, and doesn't actually exist).
mod_fastcgi should really give an error if these two options are used together, instead of behaving unexpectedly http://thread.gmane.org/gmane.comp.web.fastcgi.devel/2699/focus=2148
Do you want me to take care of updating the docs?