diff --git a/docs/04.guides/02.installing-lucee/11.securing-webinf/page.md b/docs/04.guides/02.installing-lucee/11.securing-webinf/page.md index 8fbd8e2c9..0621ca945 100644 --- a/docs/04.guides/02.installing-lucee/11.securing-webinf/page.md +++ b/docs/04.guides/02.installing-lucee/11.securing-webinf/page.md @@ -13,6 +13,7 @@ By default, Lucee places its web-context configuration and data files in a folde The WEB-INF folder structure gets created automatically when Lucee gets called to serve up a .cfm/.cfml file. If you wish to redirect the web-context data elsewhere, follow the instructions below. +This is for Windows If you followed the instructions on previous pages, you already have a folder called D:\Lucee\. Create a subfolder called "web-contexts" within D:\Lucee\ @@ -22,3 +23,34 @@ Create a subfolder called "web-contexts" within D:\Lucee\ * Locate the `` section which contains `lucee-web-directory` * Replace the `` with `D:\Lucee\web-contexts\{web-context-label}` * Restart the Tomcat service + +**For Linux** + +Create a subfolder in `/var/www/` called "web-contexts" +`mkdir /var/www/web-contexts` + +Edit the web.xml file with your favorite command line editor, such as vi, vim, pico + +`vi+310 /opt/lucee/tomcat/conf/web.xml` + +around line 310 +Comment out or replace the following line: +`` +With this line: + `/var/www/web-contexts/{web-context-label}/` + +Make sure to remove the below the newly added line. + +Your new init-param should look like this: + + lucee-web-directory + + /var/www/web-contexts/{web-context-label}/ + Lucee Web Directory (for Website-specific configurations, settings, and libraries) + + + +Change the ownership of the new web-contexts to the same user and group that your lucee process belongs to. +Restart your lucee instance +