1. nginx and apache both can host multiple domains pointed at lucee instances. as for config: Your nginx file should be something like this proxy_set_header Host $http_host;
2. proxy_set_header X-Real-IP $remote_addr;
3. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
4. proxy_set_header X-Forwarded-Proto $scheme;
5. #populate the cgi.https variable with on or off based on map condition which must be specified in a http {} block
6. proxy_set_header https $cgi_https;
7.
8.
9. #add headers for mod_cfml to do its work
10. proxy_set_header X-Tomcat-DocRoot $document_root;
11. proxy_set_header X-ModCFML-SharedKey SHARED-KEY-HERE;
12. # For more info on $lucee_context, see
http://www.modcfml.org/index.cfm/install/web-server-components/nginx-all-os/
13. if ($lucee_context = false) {
14. set $lucee_context $document_root;
15. }
16. proxy_set_header X-Webserver-Context $lucee_context;
17.
18.
19. # Enable path_info -
http://www.lucee.nl/post.cfm/enable-path-info-on-nginx-with-lucee-and-railo
20. set $pathinfo "";
21. # if the extension .cfm or .cfc is found, followed by a slash and optional extra
22. if ($uri ~ "^(.+?\.cf[mc])(/.*)") {