server vs web context

390 views
Skip to first unread message

te...@melodimedia.co.uk

unread,
Oct 19, 2015, 6:41:13 AM10/19/15
to Lucee
Hi Guys,

We've now got Lucee working in the following setup:

Windows server 2012
IIS 8.5
BonCodeAJP13 Connector
Apache Tomcat/8.0.24
Lucee 4.5.1.023

What we are finding is that with each new IIS website we add we then get a new "WEB_INF" added to each local IIS folder e.g.

W:\mywebsite1\wwwroot\WEB-INF\lucee\
W:\mywebsite2\wwwroot\WEB-INF\lucee\
etc.

In the Lucee Admin we see:

W:\Websites\mywebsite1\wwwroot\WEB-INF\lucee\lucee-web.xml.cfm

What we'd prefer is that all IIS applications are running via the "server" context rather than the "web" context:

C:\lucee\lib\lucee-server\context\lucee-server.xml

Where in all the config would we change this or would you advise against running any applications under the server context?  Most of our applications will use the same DSN's, mail servers etc. so using one server context should work ok for us and cuts down on management of approx 30 IIS applications.

Regards,

Ian.




te...@melodimedia.co.uk

unread,
Oct 19, 2015, 6:57:10 AM10/19/15
to Lucee
Just to add we also have "lucee" installed here. 

C:\lucee\tomcat\webapps\ROOT\WEB-INF\lucee

I'm a little lost in all the paths we ended up with tbh

Michael Heel

unread,
Oct 19, 2015, 7:00:42 AM10/19/15
to lu...@googlegroups.com

All Settings done in …/lucee/admin/server.cfm will be available in all Webs. If you need settings only for one website or the same setting with different values for different websites (like same mappings) you can add them in the web config.

 

I do like to have most in server too and had no problems with it so far.

 

Cheers

 

Michael

--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.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+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/1395f58f-cafb-49d9-bbe0-0ec0a652e977%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Heel

unread,
Oct 19, 2015, 7:09:37 AM10/19/15
to lu...@googlegroups.com

I always recommend to have everything belonging to the project seperated and not scattered around the system:

 

D:\project

\httpd

\jdk

\wwwroot

\scripts

\tomcat

                \lucee                   ß jars only

                \lucee-server     ß lucee server config

                \lucee-web        ß lucee webs config

                                \web1

                                \webs2

 

               

In \Tomcat\conf\web.xml you can configure where to place the server and web configs.

In \tomcat\conf\catalina.properties  under „common.loader“ name the directory where your lucee jars are.

 

<!-- ===================================================================== -->

    <!-- Lucee CFML Servlet - this is the main Lucee servlet                   -->

    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

    <servlet>

        <servlet-name>GlobalCFMLServlet</servlet-name>

        <description>CFML runtime Engine</description>

        <servlet-class>lucee.loader.servlet.CFMLServlet</servlet-class>

        <init-param>

            <param-name>lucee-web-directory</param-name>

            <param-value>/opt/tomcat/lucee-web/{web-context-label}</param-value>

            <description>Lucee Web Directory</description>

        </init-param>

        <init-param>

            <param-name>lucee-server-directory</param-name>

            <param-value>/opt/tomcat/lucee-server/</param-value>

            <description>Directory where Lucee server root is stored</description>

        </init-param>

        <load-on-startup>1</load-on-startup>

    </servlet>

    <servlet-mapping>

        <servlet-name>GlobalCFMLServlet</servlet-name>

        <url-pattern>*.cfm</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

        <servlet-name>GlobalCFMLServlet</servlet-name>

        <url-pattern>*.cfml</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

        <servlet-name>GlobalCFMLServlet</servlet-name>

        <url-pattern>*.cfc</url-pattern>

    </servlet-mapping>

 

 

 

Thats all from a non-installer setup btw.

 

Cheers

 

michael

 

 

Von: lu...@googlegroups.com [mailto:lu...@googlegroups.com] Im Auftrag von te...@melodimedia.co.uk


Gesendet: Montag, 19. Oktober 2015 12:57
An: Lucee <lu...@googlegroups.com>

--

See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.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+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages