Setup Lucee 6.2 Hosting on Windows Server 2025

Hello folks!

I have been trying to run several websites with Lucee/IIS in our internal network for 2 weeks without success.

The goal is to access a server internally in the browser with the IP address and the website alias. E.g. http://192.168.5.3/site1/index.cfm, http://192.168.5.3/site2/index.cfm, etc.

I wanted to use IIS for this. But I have not been able to do it so far, there are always “path problems” and “file not found” errors. Is this even possible? Actually it is a web hosting for internal purpose. If you can’t do it with IIS, then how?

We would appreciate it very much if someone could give us instructions on how to do this. So far we have not found any instructions. Thank you very much!

OS: Windows Server 2025
Java Version: bundled
Tomcat Version: bundled
Lucee Version: 6.2.1.122

There’s a whole section on Lucee docs?

Thank you sir. But it’s for Windows Datacenter 2019. I installed IIS, Lucee etc. many times and could not get the simple thing we need here…

So it is 2019 not 2025?

Works out of the box for me every time on iis (from 2012/2019/2022/2025), right off the installer?

Are you working on an AD or Entra domain? Could it be your permissions setup? (running on named user or network service (default) user?)

Trying some things:

  • can you browse to localhost:8888 (direct to lucee tomcat) on the machine
  • can you get to the site from http://localhost/ on the machine
  • does index.htm with hello in it work out of the right directory (whatever your iis webroot is?)
  • does an index.cfm with <cfoutput>#now()#</cfoutput> render and show the current date/time (also chuck an application.cfc in here with this.name = "test"; defined if it throws cf error to eliminated root searching)
  • if error, what directory is the erroir pointing to (and what directory is iis pointing to)

The installer: (sometimes download has been corrupted)

  • uninstall, reboot, re-download, reinstall
1 Like

good tips!

also @Roger_Grossglauser including the actual errors and where they are coming from (iis or tomcat or lucee) will really help us troubleshoot

thank you very much for the help! I will try everything right now. I have to say, I speak german and maybe I wrote something wrong. Installing Lucee is absolutely no problem, but setting up the websites (more than one) in IIS is what I’m trying to do since 2 weeks. I have no domain-names, I just have the server’s IP-address. And I wanted to save my websites under C:\HOSTING\site1, site2 etc . But anyways, I will try all what you wrote now. thanks

Gruss von Berlin, deine englisch ist ganz fine, Ich komme aus Australien

But let’s stick to english here! I speak much better than i write german.

Does IIS work with static html files with multiple sites?

1 Like

G’day, mate, Grüsse nach Berlin aus Bern :smile:
so here is what I did (in the pdf)
the pdf

  • static htm works

greets to @dawesi too, and many thanks for any help!
maybe I’m just doing it wrong with “applications” in IIS. So, that’s what I don’t understand.
But, as I said, it doesn’t have to be like that. We just need 2 (or more) lucee-websites accessible on the internal network, with the IP-address and the “site-name”…

awesome work on that pdf, really helped paint the picture!

the problem seems to be that the path lucee is 404ing on is c:\hosting\site1\site1\index.cfm when it should be c:\hosting\site1\index.cfm yeah?

but you’re requesting /site1/index.cfm rather than just /index.cfm

why are you trying to access the subdirectory when all the files are in webroot?

image

well, yes when I’m entering just the IP-address, I land on site1

c:\hosting\site1\site1\index.cfm when it should be c:\hosting\site1\index.cfm yeah? YES

[quote=“Zackster, post:9, topic:15272”] ehm, I don’t know;) help me
why are you trying to access the subdirectory when all the files are in webroot?
[/quote]

Do I have to place the websites files somewhere else, eg. inetpub or tomcat ROOT? hmm
We absolutely need more than 1 site on that server and only have this one ip-address

well, if you can’t setup dns on your internal network, you could just listen on different ports for different sites, i.e port 80 and port 81

ok, new for me. I’m the programmer…:wink:
could you please tell me, how I would do the one or the other? dns would be possible here I guess but the port solution would be ok too

In the site properties under IIS you can set the port(s) which a site listens on.

but looking at the pdf again, you only have one website setup (default web site), you are creating virtual directories rather than websites??

image

Lucee doesn’t know about your webserver virtual directories, you need to create the same mappings in the Lucee admin

ok, I created 2 websites now with ports 81 and 82. and created the firewall rules

yeah…I mean it still doesn’t

when testing on the server, you can just use one.localhost and two.localhost which makes things clearer


so, I set up the two websites like this, and now when testing on the server both are going to the lucee website (without style). We would have a dns server here as well. What should I do? how is this done (web host for lucee websites in internal network) usually? we don’t want something special, just the standard.
teamviewer 1 027 731 355 :wink:

all depends on your local network? your router may support adding dns host entries

otherwise, you can enable dhcp / dns on your windows server and then reconfigure your router so all the clients on the network use the windows server for dns and getting ip addresses.

That does mean if the windows server goes offline, internet will go down for everyone

we have a DNS server here and we could do what should be done. We just don’t know what. I’m just the programmer and our external IT supporter company is not specialized with Internet-things and they don’t know either, that’s why I’m here;)
but how is the usual way to do something like this?

  • Lucee - IIS - websites with domain names (in dns server)?
  • Lucee - IIS - websites on different ports?
  • Lucee - websites in C:\lucee\tomcat\webapps\ROOT folder - Access over :8888?

nobody else did this ever before? the thing is that, 1. we love lucee;) 2. we have the idea to create several internal Webapps and don’t want to buy for an extra Lucee-Hosting on the web…
Thank you for supporting us!

you would add cnames pointing to the server name in dns,

then you can bind each website to the same ip and port, and just define the hostname for each site

If you company doesn’t already, we really need support Lucee - Open Collective

So, I’ve done it.
Goal: to host multiple Lucee websites on an internal Windows server.
After installing Lucee and IIS as standard, I set up the websites as follows:


Here’s an example with two websites. For the bindings, I entered the server’s IP address and port 80, and then a host name that I recorded on the DNS server. I did the same for the second website, but with a different host name. Running the pages on different ports didn’t work for me; only the solution with the host names worked.

Thank you so much for your help, Zac and dawesi. Our entire staff is infinitely grateful! and that’s worth much more than some money… :joy: haha, no seriously, when we can we will support. cheers

4 Likes