Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update page.md #1238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/04.guides/02.installing-lucee/11.securing-webinf/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand All @@ -22,3 +23,34 @@ Create a subfolder called "web-contexts" within D:\Lucee\
* Locate the `<init-param>` section which contains `<param-name>lucee-web-directory</param-name>`
* Replace the `<param-value>` 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:
`<!-- <param-value>/var/Lucee/config/web/{web-context-label}/</param-value> -->`
With this line:
`<param-value>/var/www/web-contexts/{web-context-label}/</param-value>`

Make sure to remove the <!-- and
--> below the newly added line.

Your new init-param should look like this:
<init-param>
<param-name>lucee-web-directory</param-name>
<!-- <param-value>/var/Lucee/config/web/{web-context-label}/</param-value> -->
<param-value>/var/www/web-contexts/{web-context-label}/</param-value>
<description>Lucee Web Directory (for Website-specific configurations, settings, and libraries)</description>
</init-param>


Change the ownership of the new web-contexts to the same user and group that your lucee process belongs to.
Restart your lucee instance