Nginx

Are there any plans for better support for nginx in the future?

Could you elaborate on what you mean by that? I believe through mod_cfml
and proxy_http you get everything you should need…

JoeOn Mon, Jan 23, 2017 at 8:09 AM, Daemach <@Daemach> wrote:

Are there any plans for better support for nginx in the future?


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%
40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

You need a J2EE server. It doesn’t need to be tomcat, but you can’t run
Nginx direct to Lucee. You can run Lucee on undertow or any other J2EE
server. (Nor can you run Lucee through something like fastcgi - you need a
servlet container)

What does adding Nginx to the mix give you?

Personally I use Nginx in front of Lucee/ACF for cookie rewrites and to
serve static content, and I have Tomcat+Nginx on one server, and load
balance requests coming into Nginx. But you could have a Nginx cluster,
and a Lucee cluster, if you wanted to. Or just load balance between Lucee
instances. Tomcat can be used in production.

If you only have one Web context you don’t need mod_cfml.
JoeOn Mon, Jan 23, 2017 at 10:17 AM, Daemach <@Daemach> wrote:

I’m using lucee and SQLS on AWS for an environmental monitoring backend.
I’m hoping to have 100K hardware modules connected within a couple of years
and will need to load balance. Should I be running nginx on separate
servers and load balancing them, proxying requests to backend tomcat
servers or on the same server as lucee/tomcat? Is there any way to get
tomcat out of the loop?

A writeup/reference with sample config files would be great. I don’t
understand what mod_cfml does either.

Thanks for your patience.

On Mon, Jan 23, 2017 at 5:43 AM, Dominic Watson < @Dominic_Watson> wrote:

Indeed, we use nginx and don’t use mod_cfml. We just straight-up proxy to
tomcat and it just works. I guess Lucee could help by providing some
example setups in the docs (with and without mod_cfml).

On 23 January 2017 at 13:14, Joseph Gooch <@Joseph_Gooch> wrote:

Could you elaborate on what you mean by that? I believe through
mod_cfml and proxy_http you get everything you should need…

Joe

On Mon, Jan 23, 2017 at 8:09 AM, Daemach <@Daemach> wrote:

Are there any plans for better support for nginx in the future?


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%
3Dg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9Dh
dySmg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Dominic Watson
Technical Lead

Pixl8 Interactive, 3 Tun Yard,
Peardon Street, London, SW8 3HT
+44 (0) 207 720 4545 <020%207720%204545>
www.pixl8.co.uk

http://www.facebook.com/pixl8 http://www.twitter.com/pixl8
http://www.linkedin.com/company/pixl8-interactive


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xY
mMVw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYmMVw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%
40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

FWIW, here’s a snippet from our nginx config’s proxy settings. ymmv:

location / {
proxy_set_header X-Original-Url $request_uri;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_cookie_path /mysite/ /;

    proxy_read_timeout 1200;
    proxy_pass http://127.0.0.1:8888/mysite$request_uri;
}On 23 January 2017 at 18:58, Igal @ Lucee.org <@Igal> wrote:

On 1/23/2017 10:12 AM, Nando Breiter wrote:

This might also help

Using Nginx With ColdFusion or Lucee - Nando @ Aria Media

Configuring hosts in server.xml is simple and straightforward. I don’t use
mod_cfml.

Big advantage for me having nginx in front is configuring ssl on nginx is
significantly easier than dealing with uploading certs to Java.

+1

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/6feb057f-d5ac-d27a-b34a-7aa355efcafa%40lucee.org
https://groups.google.com/d/msgid/lucee/6feb057f-d5ac-d27a-b34a-7aa355efcafa%40lucee.org?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Dominic Watson
Technical Lead

Pixl8 Interactive, 3 Tun Yard,
Peardon Street, London, SW8 3HT
+44 (0) 207 720 4545 <020%207720%204545>

http://www.facebook.com/pixl8 http://www.twitter.com/pixl8
http://www.linkedin.com/company/pixl8-interactive

Deamach,

What mod_cfml does is to allow you to run multiple virtual hosts in tomcat
without having to configure each host/wwwroot in the server.xml file. It is
not a requirement to run multiple virtual hosts, it simply makes
configuration easier and more like what people are used to with ACF.

If you are looking for some example of working with nginx and lucee you can
take a look at this: GitHub - foundeo/ubuntu-nginx-lucee: Script for standing up a Lucee server using nginx and Tomcat on Ubuntu it does
use mod_cfml by default.–
Pete Freitag
https://foundeo.com/ http://foundeo.com/ - ColdFusion Consulting &
Products
http://hackmycf.com - CFML Server Security Scanner

On Mon, Jan 23, 2017 at 10:33 AM, Daemach <@Daemach> wrote:

I need to use nginx to adjust SSL fragment size on some static firmware
files. I have some low memory devices trying to do over-the-air firmware
updates and, being limited memory, they aren’t handling the default
fragment/buffer size well.

At the moment, my server is hosting a production and staging/beta server.
How would mod_cfml benefit me?

On Mon, Jan 23, 2017 at 7:22 AM, Joseph Gooch <@Joseph_Gooch> wrote:

You need a J2EE server. It doesn’t need to be tomcat, but you can’t run
Nginx direct to Lucee. You can run Lucee on undertow or any other J2EE
server. (Nor can you run Lucee through something like fastcgi - you need a
servlet container)

What does adding Nginx to the mix give you?

Personally I use Nginx in front of Lucee/ACF for cookie rewrites and to
serve static content, and I have Tomcat+Nginx on one server, and load
balance requests coming into Nginx. But you could have a Nginx cluster,
and a Lucee cluster, if you wanted to. Or just load balance between Lucee
instances. Tomcat can be used in production.

If you only have one Web context you don’t need mod_cfml.
Joe

On Mon, Jan 23, 2017 at 10:17 AM, Daemach <@Daemach> wrote:

I’m using lucee and SQLS on AWS for an environmental monitoring
backend. I’m hoping to have 100K hardware modules connected within a
couple of years and will need to load balance. Should I be running nginx
on separate servers and load balancing them, proxying requests to backend
tomcat servers or on the same server as lucee/tomcat? Is there any way to
get tomcat out of the loop?

A writeup/reference with sample config files would be great. I don’t
understand what mod_cfml does either.

Thanks for your patience.

On Mon, Jan 23, 2017 at 5:43 AM, Dominic Watson < @Dominic_Watson> wrote:

Indeed, we use nginx and don’t use mod_cfml. We just straight-up proxy
to tomcat and it just works. I guess Lucee could help by providing some
example setups in the docs (with and without mod_cfml).

On 23 January 2017 at 13:14, Joseph Gooch <@Joseph_Gooch> wrote:

Could you elaborate on what you mean by that? I believe through
mod_cfml and proxy_http you get everything you should need…

Joe

On Mon, Jan 23, 2017 at 8:09 AM, Daemach <@Daemach> wrote:

Are there any plans for better support for nginx in the future?


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C
4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3D
wNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Dominic Watson
Technical Lead

Pixl8 Interactive, 3 Tun Yard,
Peardon Street, London, SW8 3HT
+44 (0) 207 720 4545 <020%207720%204545>
www.pixl8.co.uk

http://www.facebook.com/pixl8 http://www.twitter.com/pixl8
http://www.linkedin.com/company/pixl8-interactive


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYm
MVw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYmMVw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf
_sA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAKY58c5LWDUU%2B_-XGs11-%3D0fYOZexC3eA7hZgpCnjoAGr
p-eaw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c5LWDUU%2B_-XGs11-%3D0fYOZexC3eA7hZgpCnjoAGrp-eaw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/CAMXSWUDtxDn_9a_CwFv8kU8hD-ANBhSS_ydo6Ac4pkqv%
2B_x0sw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUDtxDn_9a_CwFv8kU8hD-ANBhSS_ydo6Ac4pkqv%2B_x0sw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

+1

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 1/23/2017 10:12 AM, Nando Breiter wrote:

This might also help

Using Nginx With ColdFusion or Lucee - Nando @ Aria Media

Configuring hosts in server.xml is simple and straightforward. I don’t
use mod_cfml.

Big advantage for me having nginx in front is configuring ssl on nginx
is significantly easier than dealing with uploading certs to Java.

I need to use nginx to adjust SSL fragment size on some static firmware
files. I have some low memory devices trying to do over-the-air firmware
updates and, being limited memory, they aren’t handling the default
fragment/buffer size well.

At the moment, my server is hosting a production and staging/beta server.
How would mod_cfml benefit me?On Mon, Jan 23, 2017 at 7:22 AM, Joseph Gooch <@Joseph_Gooch> wrote:

You need a J2EE server. It doesn’t need to be tomcat, but you can’t run
Nginx direct to Lucee. You can run Lucee on undertow or any other J2EE
server. (Nor can you run Lucee through something like fastcgi - you need a
servlet container)

What does adding Nginx to the mix give you?

Personally I use Nginx in front of Lucee/ACF for cookie rewrites and to
serve static content, and I have Tomcat+Nginx on one server, and load
balance requests coming into Nginx. But you could have a Nginx cluster,
and a Lucee cluster, if you wanted to. Or just load balance between Lucee
instances. Tomcat can be used in production.

If you only have one Web context you don’t need mod_cfml.
Joe

On Mon, Jan 23, 2017 at 10:17 AM, Daemach <@Daemach> wrote:

I’m using lucee and SQLS on AWS for an environmental monitoring backend.
I’m hoping to have 100K hardware modules connected within a couple of years
and will need to load balance. Should I be running nginx on separate
servers and load balancing them, proxying requests to backend tomcat
servers or on the same server as lucee/tomcat? Is there any way to get
tomcat out of the loop?

A writeup/reference with sample config files would be great. I don’t
understand what mod_cfml does either.

Thanks for your patience.

On Mon, Jan 23, 2017 at 5:43 AM, Dominic Watson < @Dominic_Watson> wrote:

Indeed, we use nginx and don’t use mod_cfml. We just straight-up proxy
to tomcat and it just works. I guess Lucee could help by providing some
example setups in the docs (with and without mod_cfml).

On 23 January 2017 at 13:14, Joseph Gooch <@Joseph_Gooch> wrote:

Could you elaborate on what you mean by that? I believe through
mod_cfml and proxy_http you get everything you should need…

Joe

On Mon, Jan 23, 2017 at 8:09 AM, Daemach <@Daemach> wrote:

Are there any plans for better support for nginx in the future?


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C
4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9Dh
dySmg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Dominic Watson
Technical Lead

Pixl8 Interactive, 3 Tun Yard,
Peardon Street, London, SW8 3HT
+44 (0) 207 720 4545 <020%207720%204545>
www.pixl8.co.uk

http://www.facebook.com/pixl8 http://www.twitter.com/pixl8
http://www.linkedin.com/company/pixl8-interactive


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYm
MVw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYmMVw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf
_sA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/CAKY58c5LWDUU%2B_-XGs11-%3D0fYOZexC3eA7hZgpCnjoAGrp-
eaw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c5LWDUU%2B_-XGs11-%3D0fYOZexC3eA7hZgpCnjoAGrp-eaw%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

I’ve always used Nginx for SSL termination. I have not tried it with ELB
but I’d imagine there are some pitfalls if your requirements get less
standard, Nginx is just so flexible I don’t want to use anything else.On Tuesday, 24 January 2017 11:06:34 UTC+11, Daemach Laratin wrote:

Is ngnix or elb a better option to terminate SSL and load balance?

On Mon, Jan 23, 2017 at 1:41 PM, Joseph Gooch <mrwi...@goochfriend.org <javascript:>> wrote:

Well, yeah, but from an AWS scaling perspective, you wouldn’t have the
cert on every individual guest, you’d have one LB, whether that’s ELB or
nginx or whatever. You might still have a non-ssl nginx on each VM, if you
want that server to serve static requests or rewrite requests before Lucee
gets them.

Joe

On Mon, Jan 23, 2017 at 4:39 PM, Igal @ Lucee.org <ig...@lucee.org <javascript:>> wrote:

You can use nginx as a Load Balancer :wink:

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 1/23/2017 1:31 PM, Joseph Gooch wrote:

In our environment SSL termination happens on the Load Balancer. :slight_smile:

But fair point.

Joe

On Mon, Jan 23, 2017 at 1:12 PM, Nando Breiter <na...@aria-media.com <javascript:>> wrote:

This might also help

Using Nginx With ColdFusion or Lucee - Nando @ Aria Media

Configuring hosts in server.xml is simple and straightforward. I don’t
use mod_cfml.

Big advantage for me having nginx in front is configuring ssl on nginx
is significantly easier than dealing with uploading certs to Java.

Aria Media Sagl
+41 (0)76 303 4477 cell
skype: ariamedia

On Mon, Jan 23, 2017 at 5:27 PM, Pete Freitag <pe...@foundeo.com <javascript:>> wrote:

Deamach,

What mod_cfml does is to allow you to run multiple virtual hosts in
tomcat without having to configure each host/wwwroot in the server.xml
file. It is not a requirement to run multiple virtual hosts, it simply
makes configuration easier and more like what people are used to with ACF.

If you are looking for some example of working with nginx and lucee
you can take a look at this:
GitHub - foundeo/ubuntu-nginx-lucee: Script for standing up a Lucee server using nginx and Tomcat on Ubuntu it does use mod_cfml by
default.


Pete Freitag
https://foundeo.com/ http://foundeo.com/ - ColdFusion Consulting &
Products
http://hackmycf.com - CFML Server Security Scanner

On Mon, Jan 23, 2017 at 10:33 AM, Daemach <dae...@gmail.com <javascript:>> wrote:

I need to use nginx to adjust SSL fragment size on some static
firmware files. I have some low memory devices trying to do over-the-air
firmware updates and, being limited memory, they aren’t handling the
default fragment/buffer size well.

At the moment, my server is hosting a production and staging/beta
server. How would mod_cfml benefit me?

On Mon, Jan 23, 2017 at 7:22 AM, Joseph Gooch < mrwi...@goochfriend.org <javascript:>> wrote:

You need a J2EE server. It doesn’t need to be tomcat, but you can’t
run Nginx direct to Lucee. You can run Lucee on undertow or any other J2EE
server. (Nor can you run Lucee through something like fastcgi - you need a
servlet container)

What does adding Nginx to the mix give you?

Personally I use Nginx in front of Lucee/ACF for cookie rewrites and
to serve static content, and I have Tomcat+Nginx on one server, and load
balance requests coming into Nginx. But you could have a Nginx cluster,
and a Lucee cluster, if you wanted to. Or just load balance between Lucee
instances. Tomcat can be used in production.

If you only have one Web context you don’t need mod_cfml.
Joe

On Mon, Jan 23, 2017 at 10:17 AM, Daemach <dae...@gmail.com <javascript:>> wrote:

I’m using lucee and SQLS on AWS for an environmental monitoring
backend. I’m hoping to have 100K hardware modules connected within a
couple of years and will need to load balance. Should I be running nginx
on separate servers and load balancing them, proxying requests to backend
tomcat servers or on the same server as lucee/tomcat? Is there any way to
get tomcat out of the loop?

A writeup/reference with sample config files would be great. I
don’t understand what mod_cfml does either.

Thanks for your patience.

On Mon, Jan 23, 2017 at 5:43 AM, Dominic Watson < dominic...@pixl8.co.uk <javascript:>> wrote:

Indeed, we use nginx and don’t use mod_cfml. We just straight-up
proxy to tomcat and it just works. I guess Lucee could help by providing
some example setups in the docs (with and without mod_cfml).

On 23 January 2017 at 13:14, Joseph Gooch <mrwi...@goochfriend.org <javascript:>> wrote:

Could you elaborate on what you mean by that? I believe through
mod_cfml and proxy_http you get everything you should need…

Joe

On Mon, Jan 23, 2017 at 8:09 AM, Daemach <dae...@gmail.com <javascript:>> wrote:

Are there any plans for better support for nginx in the future?

You received this message because you are subscribed to the
Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from
it, send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the
Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.

Dominic Watson
Technical Lead

Pixl8 Interactive, 3 Tun Yard,
Peardon Street, London, SW8 3HT
+44 (0) 207 720 4545
www.pixl8.co.uk

http://www.facebook.com/pixl8 http://www.twitter.com/pixl8
http://www.linkedin.com/company/pixl8-interactive

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYmMVw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYmMVw%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAKY58c5LWDUU%2B_-XGs11-%3D0fYOZexC3eA7hZgpCnjoAGrp-eaw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c5LWDUU%2B_-XGs11-%3D0fYOZexC3eA7hZgpCnjoAGrp-eaw%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUDtxDn_9a_CwFv8kU8hD-ANBhSS_ydo6Ac4pkqv%2B_x0sw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUDtxDn_9a_CwFv8kU8hD-ANBhSS_ydo6Ac4pkqv%2B_x0sw%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAADZ8V7E-nZkv1N6d3BtvqnHhNSA5J3q95MgQkTWBKpCae4h0g%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAADZ8V7E-nZkv1N6d3BtvqnHhNSA5J3q95MgQkTWBKpCae4h0g%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAGHrs%3D8gjq_2oRP3zvEeNKLT6ikEwpQJnf8UM2J0Q0BUjHO0mQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAGHrs%3D8gjq_2oRP3zvEeNKLT6ikEwpQJnf8UM2J0Q0BUjHO0mQ%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAKY58c5YoAyCphDRY7MMgQedQLF1QBkENtugX%3DCGmC66GQFgSw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c5YoAyCphDRY7MMgQedQLF1QBkENtugX%3DCGmC66GQFgSw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/31c2c6b5-e6ce-1c05-5869-5d9b6d7de209%40lucee.org
https://groups.google.com/d/msgid/lucee/31c2c6b5-e6ce-1c05-5869-5d9b6d7de209%40lucee.org?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAKY58c7fYrTFfs-FbcJzqwsA%2BLfGy_m9OM7j1qes6ytmOWkNeA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c7fYrTFfs-FbcJzqwsA%2BLfGy_m9OM7j1qes6ytmOWkNeA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Is ngnix or elb a better option to terminate SSL and load balance?On Mon, Jan 23, 2017 at 1:41 PM, Joseph Gooch <@Joseph_Gooch> wrote:

Well, yeah, but from an AWS scaling perspective, you wouldn’t have the
cert on every individual guest, you’d have one LB, whether that’s ELB or
nginx or whatever. You might still have a non-ssl nginx on each VM, if you
want that server to serve static requests or rewrite requests before Lucee
gets them.

Joe

On Mon, Jan 23, 2017 at 4:39 PM, Igal @ Lucee.org <@Igal> wrote:

You can use nginx as a Load Balancer :wink:

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 1/23/2017 1:31 PM, Joseph Gooch wrote:

In our environment SSL termination happens on the Load Balancer. :slight_smile:

But fair point.

Joe

On Mon, Jan 23, 2017 at 1:12 PM, Nando Breiter <@Nando_Breiter> wrote:

This might also help

Using Nginx With ColdFusion or Lucee - Nando @ Aria Media

Configuring hosts in server.xml is simple and straightforward. I don’t
use mod_cfml.

Big advantage for me having nginx in front is configuring ssl on nginx
is significantly easier than dealing with uploading certs to Java.

Aria Media Sagl
+41 (0)76 303 4477 <+41%2076%20303%2044%2077> cell
skype: ariamedia

On Mon, Jan 23, 2017 at 5:27 PM, Pete Freitag <@Pete_Freitag> wrote:

Deamach,

What mod_cfml does is to allow you to run multiple virtual hosts in
tomcat without having to configure each host/wwwroot in the server.xml
file. It is not a requirement to run multiple virtual hosts, it simply
makes configuration easier and more like what people are used to with ACF.

If you are looking for some example of working with nginx and lucee you
can take a look at this: GitHub - foundeo/ubuntu-nginx-lucee: Script for standing up a Lucee server using nginx and Tomcat on Ubuntu
it does use mod_cfml by default.


Pete Freitag
https://foundeo.com/ http://foundeo.com/ - ColdFusion Consulting &
Products
http://hackmycf.com - CFML Server Security Scanner

On Mon, Jan 23, 2017 at 10:33 AM, Daemach <@Daemach> wrote:

I need to use nginx to adjust SSL fragment size on some static
firmware files. I have some low memory devices trying to do over-the-air
firmware updates and, being limited memory, they aren’t handling the
default fragment/buffer size well.

At the moment, my server is hosting a production and staging/beta
server. How would mod_cfml benefit me?

On Mon, Jan 23, 2017 at 7:22 AM, Joseph Gooch < @Joseph_Gooch> wrote:

You need a J2EE server. It doesn’t need to be tomcat, but you can’t
run Nginx direct to Lucee. You can run Lucee on undertow or any other J2EE
server. (Nor can you run Lucee through something like fastcgi - you need a
servlet container)

What does adding Nginx to the mix give you?

Personally I use Nginx in front of Lucee/ACF for cookie rewrites and
to serve static content, and I have Tomcat+Nginx on one server, and load
balance requests coming into Nginx. But you could have a Nginx cluster,
and a Lucee cluster, if you wanted to. Or just load balance between Lucee
instances. Tomcat can be used in production.

If you only have one Web context you don’t need mod_cfml.
Joe

On Mon, Jan 23, 2017 at 10:17 AM, Daemach <@Daemach> wrote:

I’m using lucee and SQLS on AWS for an environmental monitoring
backend. I’m hoping to have 100K hardware modules connected within a
couple of years and will need to load balance. Should I be running nginx
on separate servers and load balancing them, proxying requests to backend
tomcat servers or on the same server as lucee/tomcat? Is there any way to
get tomcat out of the loop?

A writeup/reference with sample config files would be great. I
don’t understand what mod_cfml does either.

Thanks for your patience.

On Mon, Jan 23, 2017 at 5:43 AM, Dominic Watson < @Dominic_Watson> wrote:

Indeed, we use nginx and don’t use mod_cfml. We just straight-up
proxy to tomcat and it just works. I guess Lucee could help by providing
some example setups in the docs (with and without mod_cfml).

On 23 January 2017 at 13:14, Joseph Gooch <@Joseph_Gooch wrote:

Could you elaborate on what you mean by that? I believe through
mod_cfml and proxy_http you get everything you should need…

Joe

On Mon, Jan 23, 2017 at 8:09 AM, Daemach <@Daemach> wrote:

Are there any plans for better support for nginx in the future?

You received this message because you are subscribed to the
Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C
4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCPM9AMpvotD3C4mf78x2esxfU8pdKx9-9u_7wOaLi3%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3D
wNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c6-5Rg14AkX%3DwNCGJQgHUXH8YO%2BOHEd7rFhao9DhdySmg%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.

Dominic Watson
Technical Lead

Pixl8 Interactive, 3 Tun Yard,
Peardon Street, London, SW8 3HT
+44 (0) 207 720 4545 <020%207720%204545>
www.pixl8.co.uk

http://www.facebook.com/pixl8 http://www.twitter.com/pixl8
http://www.linkedin.com/company/pixl8-interactive

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAEYvUxnU19OCSzaz9-W
R%2BqxsdD8JMcX-nON9w1GGJ4E8xYmMVw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAEYvUxnU19OCSzaz9-WR%2BqxsdD8JMcX-nON9w1GGJ4E8xYmMVw%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUCr8ynuhBpuTmP
DDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUCr8ynuhBpuTmPDDMdzEcn%2BfmAVzLDTfv23Pcd2OKf_sA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAKY58c5LWDUU%2B_-XG
s11-%3D0fYOZexC3eA7hZgpCnjoAGrp-eaw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c5LWDUU%2B_-XGs11-%3D0fYOZexC3eA7hZgpCnjoAGrp-eaw%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAMXSWUDtxDn_9a_CwFv
8kU8hD-ANBhSS_ydo6Ac4pkqv%2B_x0sw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAMXSWUDtxDn_9a_CwFv8kU8hD-ANBhSS_ydo6Ac4pkqv%2B_x0sw%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAADZ8V7E-nZkv1N6d3BtvqnHhNSA5J3q95MgQkTWBKpCae4h0
g%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAADZ8V7E-nZkv1N6d3BtvqnHhNSA5J3q95MgQkTWBKpCae4h0g%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAGHrs%3D8gjq_2oRP3zvEeNKLT6ikEwpQJnf8UM2J0Q0BUjHO
0mQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAGHrs%3D8gjq_2oRP3zvEeNKLT6ikEwpQJnf8UM2J0Q0BUjHO0mQ%40mail.gmail.com?utm_medium=email&utm_source=footer.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/CAKY58c5YoAyCphDRY7MMgQedQLF1QBkENtugX%
3DCGmC66GQFgSw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c5YoAyCphDRY7MMgQedQLF1QBkENtugX%3DCGmC66GQFgSw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/lucee/31c2c6b5-e6ce-1c05-5869-5d9b6d7de209%40lucee.org
https://groups.google.com/d/msgid/lucee/31c2c6b5-e6ce-1c05-5869-5d9b6d7de209%40lucee.org?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/CAKY58c7fYrTFfs-FbcJzqwsA%2BLfGy_m9OM7j1qes6ytmOWkNeA%40mail.
gmail.com
https://groups.google.com/d/msgid/lucee/CAKY58c7fYrTFfs-FbcJzqwsA%2BLfGy_m9OM7j1qes6ytmOWkNeA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.