Setting up sites with Apache vs IIS

It seems like things are done differently in Lucee 5 vs 4. I am setting up a brand new instance of Lucee 5 with Apache 2.4 on Windows. But the docs (Adding New Sites :: Lucee Documentation) only cover adding sites with the Boncode connector using IIS. Can someone point me in the right direction for Apache? Can I use the Boncode connector at all? I’m trying to work through the docs sequentially, but am stuck here already.

I’ve gone down the path of adding my hosts to the server.xml like in Lucee 4 but I’m getting the dreaded “HTTP Status 403 – Forbidden” even if I set secretRequired to false… There are so many branches of documents to read about these details.

The installer unfortunately can’t detect the Apache2 on windows. The best information I can give you in this regard is installing Lucee with XAMPP. Even if you don’t want to use XAMPP, you can get some information about the setup of an Apache2 on Windows from there. You’ll find how to setup the connectors there. But you may need to add the hosts and the contexts manually, because mod_cfml won’t be able to detect your Apache2.

Here is the information about installing Lucee with XAMPP:

1 Like

Thanks for your reply. I finally got it working with mod_cfml and AJP by removing all references to the secret key. I did stumble onto the page you linked and validated many of my steps (without using XAMPP). It was insanely frustrating because nothing helpful was showing up in the logs.

2 Likes

@dgibson It would be wonderful if you could share what you did in s step by step manner. If you have some time to share your experience, I think the Lucee dev team would appreciate a lot to have such a content added to the docs. Glad you were able to make it work.

Sure thing. I was planning to. I’ve been taking notes so I can replicate this on my server.

2 Likes

Assuming your using linux for production? If using IIS for production , skip Apache and use IIS (with or without mod-rerwrite extension). No need to use apache at all in this use case. (to be honest devved for linux/lucee for 20 years using windows iis as dev… use forward slashses in paths and set urlrwrite for iis and apache and your done)

1 Like

Wrong assumption. This is an old app that I was forced to migrate to a new VPS on a deadline due to my host decommissioning the old one. Ideally, I wanted to use CommandBox to deploy it but there was too much to figure out and rewrite to make this work, so I chose the path of least resistance - keeping the same structure with updated software. Will circle back on other options later. I have a lot of modernizing to do.

1 Like