# Windows-based Configs

**URL:** <https://dev.lucee.org/t/windows-based-configs/8756>\
**Category:** dev\
**Created:** [August 18, 2021, 2:00pm UTC](https://dev.lucee.org/t/windows-based-configs/8756 "2021-08-18T14:00:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfbennet](https://dev.lucee.org/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@rfbennet](https://dev.lucee.org/u/rfbennet)\
**Post date:** [August 18, 2021, 2:00pm UTC](https://dev.lucee.org/t/windows-based-configs/8756/1 "2021-08-18T14:00:31Z")

</div>

I’m looking for some validation on the configurations when running Lucee on a Windows Server (Lucee 5.3.7.48 with Tomcat 9.0.35, BonCode 1.0.41, and mod\_cfml 1.1.11 running on Server 2019).

When searching the web, we seem to find some conflicting info here and there, and some things don’t seem to mesh with our assumptions (so we assume we have a config out of whack somewhere).

In IIS, if we want to run multiple sites (with no “Default Web Site”), would the bindings be similar to these?

> http [site01.company.com](http://site01.company.com) 80 (all unassigned IPs)  
> https [site01.company.com](http://site01.company.com) 443 (all unassigned IPs)  
> Physical path: e:\webapps\site01  
> (with “Require server name indication” checked)  
> http [site02.company.com](http://site02.company.com) 80 (all unassigned IPs)  
> https [site02.company.com](http://site02.company.com) 443 (all unassigned IPs)  
> Physical path: e:\webapps\site02  
> (with “Require server name indication” checked)

In server.xml, this is what we’ve got for our AJP connector (which seems to work as we can hit one of the BonCode URLs and see its version info spit back):

> ```
> <Connector
> port="XXXX"
> protocol="AJP/1.3"
> connectionTimeout="120000"
> redirectPort="8443"
> packetSize="40000"
> secret="YYYYYYYYYY"
> secretRequired="true"
> address="127.0.0.1"
> URIEncoding="UTF-8"
> />
> 
> ```

In server.xml, if we’re letting mod\_cfml do all the work, is this what is expected for the one, and only, Host entry?

> ```
> <Host name="localhost"
> appBase="webapps"
> workDir="work"
> unpackWARs="true"
> autoDeploy="true">
> 
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs"
> prefix="localhost_access_log"
> suffix=".txt"
> pattern="%h %l %u %t &quot;%r&quot; %s %b"
> />
>   
> <Valve className="mod_cfml.core"
> loggingEnabled="false"
> maxContexts="200"
> timeBetweenContexts="2000"
> scanClassPaths="false"
> responseCode="307"
> sharedKey="xxxxxxxxxxxx"
> />
> </Host>
> 
> ```

Should ‘appBase’ point to ‘e:\webapps’ instead? Should ‘workDir’ be a full path? Are we missing a setting? I’ve seen some on the web make individual Host entries for each site (which I believe we don’t need to do - relying on mod\_cfml instead) and some adding Context entries (which again, I assume are not needed with mod\_cfml).

Currently it seems like we can get a single site to work, but when we try to do multiple sites, something is off kilter. Either the WEB-INF folder doesn’t get automatically created, or when we try and navigate to a site .CFM file (such as [www.site01.company.com/index.cfm?](http://www.site01.company.com/index.cfm?)), we get an infinite redirect (and I can’t find anything useful in the logs). So we were hoping someone can help us validate the basic configs for a Windows setup to see if we’re overlooking something.

Thanks!

---

<div class="post-metadata">

**Author:** ![rfbennet](https://dev.lucee.org/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@rfbennet](https://dev.lucee.org/u/rfbennet)\
**Post date:** [August 18, 2021, 5:38pm UTC](https://dev.lucee.org/t/windows-based-configs/8756/2 "2021-08-18T17:38:22Z")

</div>

Just a quick follow-up… We figured out why some things weren’t working right after resetting our Tomcat config files. Turned out there were some URL Rewrite rules someone else put in place that were hampering our testing. But I’d still like to hear from someone if the above configs and whatnot do not make sense, or if there are adjustments we need to make as we move forward.
