openmicroscopy/openmicroscopy — pull request #1834 by aleksandra-tarkowska (2013-11-26 09:06:56+00:00)
Title: #11723 adding FORCE_SCRIPT_NAME to the settings.py (rebased onto dev_4_4)

This is the same as gh-1798 but rebased onto dev_4_4.

----

This allows to deploy omero on custom prefix using nginx. In order to test it you need to adjust your nginx.conf by adding the following:

```
fastcgi_split_path_info ^(/omero)(.*)$;
fastcgi_pass 0.0.0.0:4080;

fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_INFO $fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_script_name;
```
and setting ```$OMERO_HOME/bin/omero config set omero.web.force_script_name '/omero'```

see https://trac.openmicroscopy.org.uk/ome/ticket/11723#comment:3