<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_2.x%2FDevelopers_Guide%2FJava%2FConfiguration%2FbaseURL_and_baseDir</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/baseURL and baseDir - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/index.php?action=history&amp;feed=atom&amp;title=CKFinder_2.x%2FDevelopers_Guide%2FJava%2FConfiguration%2FbaseURL_and_baseDir"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;action=history"/>
		<updated>2026-05-08T06:07:01Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7387&amp;oldid=prev</id>
		<title>J.swiderski at 20:54, 29 November 2015</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7387&amp;oldid=prev"/>
				<updated>2015-11-29T20:54:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:54, 29 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l73&quot; &gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; a folder which can be located even outside of the server. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and In &lt;/del&gt;Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; a folder which can be located even outside of the server. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, in &lt;/ins&gt;Weblogic through &amp;lt;strong&amp;gt;virtual directories&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/strong&amp;gt;, in WildFly by &amp;lt;strong&amp;gt;adding extra entries to &amp;lt;code&amp;gt;urn:jboss:domain:undertow&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;subsystem&amp;lt;/code&amp;gt; element&amp;lt;/strong&amp;gt; in one of configuration files e.g.&amp;#160; standalone.xml&amp;#160; and in JBOSS EAP by &amp;lt;strong&amp;gt;allowing symlinks&amp;lt;/strong&amp;gt; for particular external folder in &amp;lt;code&amp;gt;jboss-web.xml&amp;lt;/code&amp;gt; file and then &amp;lt;strong&amp;gt;making that symlink&lt;/ins&gt;&amp;lt;/strong&amp;gt;.&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7375&amp;oldid=prev</id>
		<title>J.swiderski at 08:23, 4 November 2015</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7375&amp;oldid=prev"/>
				<updated>2015-11-04T08:23:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:23, 4 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l44&quot; &gt;Line 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== BaseDir and BaseUrl best practice ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== BaseDir and BaseUrl best practice ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; so that they point to same location which is outside of application directory.&amp;lt;/note&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; so that they point to same location which is outside of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;an &lt;/ins&gt;application directory.&amp;lt;/note&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In previous section, we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? CKFinder needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; to work correctly and if &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is missing, CKFinder will try to determine its value based on&amp;#160; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt;.&amp;#160; You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In previous section, we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? CKFinder needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; to work correctly and if &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is missing, CKFinder will try to determine its value based on&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/ins&gt;&amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;property&lt;/ins&gt;.&amp;#160; You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at few examples:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at few examples:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot; &gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In both above cases the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on server they are accessible like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. As you can probably see the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented above, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,&amp;#160; CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything will work as expected in this case. For other supported servers, CKFinder will use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt;application directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In both above cases the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on server they are accessible like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. As you can probably see the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented above, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,&amp;#160; CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything will work as expected in this case. For other supported servers, CKFinder will use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s take a look at another example:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s take a look at another example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l73&quot; &gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and better one &lt;/del&gt;solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;folder which can be located even outside of the server, &lt;/del&gt;through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Another solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a folder which can be located even outside of the server&lt;/ins&gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at an example for Apache Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; directory, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:7374:newid:7375 --&gt;
&lt;/table&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7374&amp;oldid=prev</id>
		<title>J.swiderski at 22:44, 3 November 2015</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7374&amp;oldid=prev"/>
				<updated>2015-11-03T22:44:36Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:44, 3 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l92&quot; &gt;Line 92:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/Context&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/Context&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;With the help of the server and two configuration changes, you can have your files being saved to &amp;lt;code&amp;gt;C:/myimages&amp;lt;/code&amp;gt; folder. It’s also worth mentioning that &amp;lt;code&amp;gt;myimages&amp;lt;/code&amp;gt; directory is invisible to end user and Tomcat serves files as if they really were located inside &amp;lt;code&amp;gt; CKFinderJava/userfiles/&amp;lt;/code&amp;gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7373&amp;oldid=prev</id>
		<title>J.swiderski at 22:25, 3 November 2015</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7373&amp;oldid=prev"/>
				<updated>2015-11-03T22:25:50Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:25, 3 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l66&quot; &gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, the upload folder will be removed.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, the upload folder will be removed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt; &amp;lt;br /&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;br /&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;strong&amp;gt;Second, you should set these properties to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;. Here is where server itself might be helpful as most of the servers provide “virtual directories”. A “Virtual Directory” allows accessing folder which can be located even outside of the server, through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at an example for Tomcat 8 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;server&lt;/del&gt;. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;folder&lt;/del&gt;, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;note&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. Second, you should &amp;lt;strong&amp;gt;set these properties to point to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;.&amp;lt;/note&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;One solution is using [https://en.wikipedia.org/wiki/Symbolic_link symlinks]. The &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located inside application context can be a symbolic link to some other directory on the disk. With that simple approach &amp;lt;code&amp;gt;/CKFinderJava/userfiles/&amp;lt;/code&amp;gt; can point to folder of your choice. One downside of this technique is that you have to recreate the symbolic link with every application redeploy as the symlink gets removed on redeployment.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Another and better one solution is using server features. Most of the servers provide &amp;quot;virtual directory&amp;quot; mechanism. A &amp;quot;Virtual Directory&amp;quot; allows accessing folder which can be located even outside of the server, through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, in Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;, in Jetty by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Let’s have a look at an example for &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Apache &lt;/ins&gt;Tomcat 8. The server is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/&amp;lt;/code&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;directory&lt;/ins&gt;, CKFinderJava is installed in &amp;lt;code&amp;gt;C:/Apache-Tomcat-8/CKFinderJava&amp;lt;/code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder located directly on &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; drive and we want that folder to be called &amp;lt;code&amp;gt;&amp;quot;myimages&amp;quot;&amp;lt;/code&amp;gt;. Here are the settings that will allow having all CKFinder features working, and &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder not being removed with every redeployment of the application:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;CKFinder config.xml settings:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;CKFinder config.xml settings:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:7372:newid:7373 --&gt;
&lt;/table&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7372&amp;oldid=prev</id>
		<title>J.swiderski at 21:45, 3 November 2015</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7372&amp;oldid=prev"/>
				<updated>2015-11-03T21:45:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:45, 3 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l43&quot; &gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;More on baseURL &lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BaseDir and BaseUrl best practice &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;As stated above, if the &lt;/del&gt;&amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;parameter &lt;/del&gt;is &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;empty&lt;/del&gt;, CKFinder &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;will try &lt;/del&gt;to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;deduce the &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;userfile&lt;/del&gt;&amp;lt;/code&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;path &lt;/del&gt;based on &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;baseURL&lt;/del&gt;&amp;lt;/code&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;parameter value&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;note&amp;gt;It is always recommended to set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &lt;/ins&gt;&amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;so that they point to same location which &lt;/ins&gt;is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;outside of application directory.&amp;lt;/note&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;In previous section&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;we have seen what problems we may get when these two properties are misconfigured but what will happen when only &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; is set? &lt;/ins&gt;CKFinder &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;needs both, &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; &lt;/ins&gt;to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;work correctly and if &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;baseDir&lt;/ins&gt;&amp;lt;/code&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is missing, CKFinder will try to determine its value &lt;/ins&gt;based on &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;baseUrl&lt;/ins&gt;&amp;lt;/code&amp;gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; You must know however that CKFinder has limited capabilities in this case. To be more precise, CKFinder is mainly limited to application context (application main directory). &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Let’s have a look at few examples:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;!--or--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;baseURL&amp;gt;http://example.com/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;If &lt;/del&gt;the server &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;hosts more applications for one domain (&lt;/del&gt;like &amp;lt;code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;localhost&lt;/del&gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;www.&lt;/del&gt;example.com&amp;lt;/code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;), &lt;/del&gt;the code above will &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;not &lt;/del&gt;work &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;for most of them&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;To be exact&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;it &lt;/del&gt;will &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;work only for the &lt;/del&gt;application &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that is set as the default one for the domain&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;In both above cases &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder points to server’s main applications directory. When multiple applications are kept on &lt;/ins&gt;server &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;they are accessible &lt;/ins&gt;like &amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;nowiki&amp;gt;http://example.com/CKFinderJava-2.5&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;nowiki&amp;gt;http://&lt;/ins&gt;example.com&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/CKFinderJava-2.4&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&amp;lt;/code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. As you can probably see &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/ins&gt;code&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;userfiles&amp;lt;/code&amp;gt; folder should be created on same level as applications in order to be accessible through HTTP. The problem is that applications folder is not accessible from the web. There are however two servers which have general accessible folders and to which CKFinder can get. These servers are Apache Tomcat and Oracle GlassFish. Having configuration like presented &lt;/ins&gt;above&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &amp;lt;strong&amp;gt;starting from CKFinder 2.5.1&amp;lt;/strong&amp;gt;,&amp;#160; CKFinder will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder in &amp;lt;code&amp;gt;TOMCAT_HOME/webapps/ROOT&amp;lt;/code&amp;gt; directory for Apache Tomcat and &amp;lt;code&amp;gt;GLASSFISH_HOME/glassfish/domains/domain_name/docroot &amp;lt;/code&amp;gt; directory for Oracle GlassFish. Everything &lt;/ins&gt;will work &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as expected in this case&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;For other supported servers&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CKFinder &lt;/ins&gt;will &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;use fallback approach and create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt;&lt;/ins&gt;application &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;directory. As you probably know, this will unfortunately result in &amp;lt;strong&amp;gt;View&amp;lt;/strong&amp;gt; option not working properly&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This may sound &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bit enigmatic, but here is the explanation. &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Let’s take &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;look at another example:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;If &lt;/del&gt;the server &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;hosts multiple applications &lt;/del&gt;in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;one domain&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the users usually call them &lt;/del&gt;in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the following way (note this does not pertain &lt;/del&gt;to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the default application):&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Above setting will create &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application directory. Although such configuration will work on every server there is a caveat to that approach. It isn’t recommended to put folder for uploaded files into deployed application folder because with every redeployment (e.g. when upgrading &amp;lt;code&amp;gt;war&amp;lt;/code&amp;gt; to new version) of the application, &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;upload folder will be removed.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;strong&amp;gt;So, what should be done to set &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; correctly? &amp;lt;/strong&amp;gt; &amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;First of all you should set &amp;lt;strong&amp;gt;both&amp;lt;/strong&amp;gt; properties so that they &amp;lt;strong&amp;gt;point to same location&amp;lt;/strong&amp;gt; which is &amp;lt;strong&amp;gt;accessible&amp;lt;/strong&amp;gt; through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt; and from &amp;lt;code&amp;gt; &amp;lt;strong&amp;gt;the file system&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;strong&amp;gt;Second, you should set these properties to location outside of CKFinder application folder&amp;lt;/strong&amp;gt;. Here is where &lt;/ins&gt;server &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;itself might be helpful as most of the servers provide “virtual directories”. A “Virtual Directory” allows accessing folder which can be located even outside of the server, through &amp;lt;code&amp;gt;&amp;lt;strong&amp;gt;HTTP&amp;lt;/strong&amp;gt;&amp;lt;/code&amp;gt;. In Tomcat 7-8 this can be done through &amp;lt;strong&amp;gt;aliases&amp;lt;/strong&amp;gt;, &lt;/ins&gt;in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Tomcat 6 by &amp;lt;strong&amp;gt;adding another context to &amp;lt;code&amp;gt;server.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;, in GlassFish through &amp;lt;strong&amp;gt;alternate docroots&amp;lt;/strong&amp;gt;&lt;/ins&gt;, in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Jetty by &amp;lt;strong&amp;gt;adding another context &lt;/ins&gt;to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;jetty.xml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; and In Weblogic through &amp;lt;strong&amp;gt;virtual directories&amp;lt;/strong&amp;gt;. &amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;:/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/localhost:8080&lt;/del&gt;/CKFinderJava/&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;br &lt;/del&gt;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Let’s have a look at an example for Tomcat 8 server. The server is installed in &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;C:/Apache-Tomcat-8/&lt;/ins&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/code&lt;/ins&gt;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;folder, CKFinderJava is installed in &amp;lt;code&amp;gt;C&lt;/ins&gt;:/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Apache-Tomcat-8&lt;/ins&gt;/CKFinderJava&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&amp;gt;, we want to have our &amp;lt;code&amp;gt;userfiles&lt;/ins&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/ins&gt;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;folder located directly on &amp;lt;code&amp;gt;C&lt;/ins&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/ins&gt;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;drive and we want that folder to be called &lt;/ins&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/ins&gt;&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;myimages&amp;quot;&amp;lt;&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&amp;gt;&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Here are the settings that will allow having all CKFinder features working, and &lt;/ins&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/ins&gt;&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;userfiles&lt;/ins&gt;&amp;lt;/code&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;folder not being removed with every redeployment of the application:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http:&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/www&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;example.com/CKFinderJava/&lt;/del&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/nowiki&lt;/del&gt;&amp;gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or the following way, where &lt;/del&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;filemanager&lt;/del&gt;&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is the ''context path'' for the &lt;/del&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;CKFinderJava&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;application:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CKFinder config.xml settings:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;baseDir&lt;/ins&gt;&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;C:/myimages&lt;/ins&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;baseDir&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;baseURL&lt;/ins&gt;&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;CKFinderJava&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http:&lt;/del&gt;//&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;localhost&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;8080/filemanager/&lt;/del&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/nowiki&lt;/del&gt;&amp;gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;br &lt;/del&gt;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CKFinderJava&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;META-INF&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;context.xaml settings&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;://&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;www&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;example&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;com&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;filemanager/&amp;lt;&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;source lang=&amp;quot;xml&amp;quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Context antiJARLocking=&amp;quot;true&amp;quot; path=&amp;quot;&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CKFinderJava&amp;quot; reloadable=&amp;quot;true&amp;quot; &lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;These applications are (physically) located in one directory (like &lt;/del&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&amp;gt;webapps&amp;lt;/code&amp;gt; for Tomcat or Jetty) and to differentiate between them, the user needs to include the name or alias (context path) of the called application in its URL&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &lt;/ins&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Resources&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;When the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter is set to point directly to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder, CKFinder will create this folder in the application directory (like &amp;lt;code&amp;gt; CKFinderJava/userfiles/&amp;lt;/code&amp;gt;)&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;On the other hand, when the user will want to use the '''View''' option, the browser will search for the image in the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://hostName/baseURL/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;/del&gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160;  &amp;lt;PreResources base=&amp;quot;C&lt;/ins&gt;://&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;myimages&amp;quot; className=&amp;quot;org.apache.catalina&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;webresources&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;DirResourceSet&amp;quot; webAppMount=&amp;quot;&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;userfiles&amp;quot; &lt;/ins&gt;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160;  &lt;/ins&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Resources&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The first address points to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory placed in the root of the web applications directory&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Since the CKFinder &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory is located elsewhere, the image will not be found and the browser will display the &lt;/del&gt;&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;404 &amp;amp;mdash; Not found&lt;/del&gt;&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;error&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160;  &lt;/ins&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Valve className=&amp;quot;org&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;apache&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;catalina&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;valves&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;RemoteAddrValve&lt;/ins&gt;&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; allow=&lt;/ins&gt;&amp;quot;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*&amp;quot; &lt;/ins&gt;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Context&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;It is worth mentioning that the example above will work if you set one of the applications as a default for a domain (for example by using virtual hosting). Do remember, though, that this is only possible for one application per domain. With this configuration in place the &amp;lt;code&amp;gt;userfiles&amp;lt;&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;directory will be created in the application root, but by default the application root is associated with the domain name, so calling &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&lt;/del&gt;&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&amp;gt; will let you search in the &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&lt;/del&gt;&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;application folder and display the image.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:7337:newid:7372 --&gt;
&lt;/table&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7337&amp;oldid=prev</id>
		<title>J.swiderski at 09:43, 21 January 2015</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=7337&amp;oldid=prev"/>
				<updated>2015-01-21T09:43:09Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:43, 21 January 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l69&quot; &gt;Line 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The first address points to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory placed in the root of the web applications directory. Since the CKFinder &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory is located elsewhere, the image will not be found and the browser will display the &amp;quot;404 &amp;amp;mdash; Not found&amp;quot; error.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The first address points to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory placed in the root of the web applications directory. Since the CKFinder &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory is located elsewhere, the image will not be found and the browser will display the &amp;quot;404 &amp;amp;mdash; Not found&amp;quot; error.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is worth &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;noting &lt;/del&gt;that the example above will work if you set one of the applications as a default for a domain (for example by using virtual hosting). Do remember, though, that this is only possible for one application per domain. With this configuration in place the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created in the application root, but by default the application root is associated with the domain name, so calling &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will let you search in the &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application folder and display the image.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is worth &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;mentioning &lt;/ins&gt;that the example above will work if you set one of the applications as a default for a domain (for example by using virtual hosting). Do remember, though, that this is only possible for one application per domain. With this configuration in place the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created in the application root, but by default the application root is associated with the domain name, so calling &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will let you search in the &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application folder and display the image.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:6444:newid:7337 --&gt;
&lt;/table&gt;</summary>
		<author><name>J.swiderski</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6444&amp;oldid=prev</id>
		<title>Anna: Orphan &lt;/note&gt; tag removed</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6444&amp;oldid=prev"/>
				<updated>2011-08-09T11:10:06Z</updated>
		
		<summary type="html">&lt;p&gt;Orphan &amp;lt;/note&amp;gt; tag removed&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:10, 9 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/note&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may ask: why use two paths to point to one location?&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may ask: why use two paths to point to one location?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Anna</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6252&amp;oldid=prev</id>
		<title>Wiktor: Removed -X.Y</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6252&amp;oldid=prev"/>
				<updated>2011-05-02T19:32:53Z</updated>
		
		<summary type="html">&lt;p&gt;Removed -X.Y&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 19:32, 2 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;note&amp;gt;Note that &amp;lt;code&amp;gt;''X.Y''&amp;lt;/code&amp;gt; in the code above denotes a CKFinder version, like &amp;lt;code&amp;gt;2.0&amp;lt;/code&amp;gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/note&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/note&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot; &gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseURL&amp;gt;/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseURL&amp;gt;/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;baseURL&amp;gt;/CKFinderJava/userfiles/&amp;lt;/baseURL&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot; &gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the server hosts multiple applications in one domain, the users usually call them in the following way (note this does not pertain to the default application):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the server hosts multiple applications in one domain, the users usually call them in the following way (note this does not pertain to the default application):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;nowiki&amp;gt;http://www.example.com/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;nowiki&amp;gt;http://www.example.com/CKFinderJava/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;or the following way, where &amp;lt;code&amp;gt;filemanager&amp;lt;/code&amp;gt; is the ''context path'' for the &amp;lt;code&amp;gt;CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-''X.Y''&lt;/del&gt;&amp;lt;/code&amp;gt; application:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;or the following way, where &amp;lt;code&amp;gt;filemanager&amp;lt;/code&amp;gt; is the ''context path'' for the &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/filemanager/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/filemanager/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l69&quot; &gt;Line 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These applications are (physically) located in one directory (like &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; for Tomcat or Jetty) and to differentiate between them, the user needs to include the name or alias (context path) of the called application in its URL.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These applications are (physically) located in one directory (like &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; for Tomcat or Jetty) and to differentiate between them, the user needs to include the name or alias (context path) of the called application in its URL.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter is set to point directly to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder, CKFinder will create this folder in the application directory (like &amp;lt;code&amp;gt; CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-''X.Y''&lt;/del&gt;/userfiles/&amp;lt;/code&amp;gt;). On the other hand, when the user will want to use the '''View''' option, the browser will search for the image in the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://hostName/baseURL/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-X.Y&lt;/del&gt;/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter is set to point directly to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder, CKFinder will create this folder in the application directory (like &amp;lt;code&amp;gt; CKFinderJava/userfiles/&amp;lt;/code&amp;gt;). On the other hand, when the user will want to use the '''View''' option, the browser will search for the image in the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://hostName/baseURL/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The first address points to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory placed in the root of the web applications directory. Since the CKFinder &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory is located elsewhere, the image will not be found and the browser will display the &amp;quot;404 &amp;amp;mdash; Not found&amp;quot; error.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The first address points to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory placed in the root of the web applications directory. Since the CKFinder &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory is located elsewhere, the image will not be found and the browser will display the &amp;quot;404 &amp;amp;mdash; Not found&amp;quot; error.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is worth noting that the example above will work if you set one of the applications as a default for a domain (for example by using virtual hosting). Do remember, though, that this is only possible for one application per domain. With this configuration in place the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created in the application root, but by default the application root is associated with the domain name, so calling &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will let you search in the &amp;lt;code&amp;gt;CKFinderJava&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-''X.Y''&lt;/del&gt;&amp;lt;/code&amp;gt; application folder and display the image.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is worth noting that the example above will work if you set one of the applications as a default for a domain (for example by using virtual hosting). Do remember, though, that this is only possible for one application per domain. With this configuration in place the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created in the application root, but by default the application root is associated with the domain name, so calling &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will let you search in the &amp;lt;code&amp;gt;CKFinderJava&amp;lt;/code&amp;gt; application folder and display the image.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:6236:newid:6252 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wiktor</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6236&amp;oldid=prev</id>
		<title>Anna: Minor text restructuring</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6236&amp;oldid=prev"/>
				<updated>2011-04-27T07:43:24Z</updated>
		
		<summary type="html">&lt;p&gt;Minor text restructuring&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:43, 27 April 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may ask: why use two paths to point to one location?&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may ask: why use two paths to point to one location?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. CKFinder itself is not an HTTP client, but an application that operates on the server-based files that needs absolute paths to these files to operate correctly&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CKFinder itself is not an HTTP client, but an application that operates on server-based files that needs absolute paths to these files to operate correctly. &lt;/ins&gt;A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Misconfiguration of baseURL and baseDir ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Misconfiguration of baseURL and baseDir ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key ckeditor_docsold:diff:version:1.11a:oldid:6229:newid:6236 --&gt;
&lt;/table&gt;</summary>
		<author><name>Anna</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6229&amp;oldid=prev</id>
		<title>Anna: Article contents added</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/baseURL_and_baseDir&amp;diff=6229&amp;oldid=prev"/>
				<updated>2011-04-26T16:40:08Z</updated>
		
		<summary type="html">&lt;p&gt;Article contents added&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#CUSTOMTITLE:baseDir and baseURL Parameters Explained}}&lt;br /&gt;
__TOC__&lt;br /&gt;
Both &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; should point to the same location on the server &amp;amp;mdash; the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory that contains all user files uploaded with CKFinder. The difference between them is as follows:&lt;br /&gt;
* &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; gives a full URL to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory or a path that is ''relative'' to the domain. For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;http://example.com/CKFinderJava-X.Y/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseURL&amp;gt;/CKFinderJava-X.Y/userfiles/&amp;lt;/baseURL&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; gives an ''absolute'' path to the directory on the server (a physical machine). For example:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;/usr/tomcat/webapps/CKFinderJava-X.Y/userfiles/&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;baseDir&amp;gt;C:\tomcat\webapps\CKFinderJava-X.Y\userfiles\&amp;lt;/baseDir&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;Note that &amp;lt;code&amp;gt;''X.Y''&amp;lt;/code&amp;gt; in the code above denotes a CKFinder version, like &amp;lt;code&amp;gt;2.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;/note&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may ask: why use two paths to point to one location?&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter represents the path that is used by HTTP clients. It is employed for example when CKFinder returns the URL addresses of the files. CKFinder itself is not an HTTP client, but an application that operates on the server-based files that needs absolute paths to these files to operate correctly.&lt;br /&gt;
&lt;br /&gt;
A specific server configuration may sometimes lead to problems with setting the absolute path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter, which leads to the malfunctioning of the application. This is where the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter that contains the direct path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory may help.&lt;br /&gt;
&lt;br /&gt;
== Misconfiguration of baseURL and baseDir ==&lt;br /&gt;
Since setting the parameters may sometimes seem counter-intuitive, especially for the beginners, here are a couple of examples of CKFinder misconfiguration, i.e. the situation where the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings were wrong.&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Using a Relative Path for baseDir ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;/userfiles/&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava-X.Y/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter contains the relative (and not absolute) path to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory. In a Windows system with this configuration the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created on the same partition that hosts the server (for example, &amp;lt;code&amp;gt;C:\userfiles&amp;lt;/code&amp;gt;). On a Linux machine the system will try to create a &amp;lt;code&amp;gt;/userfiles/&amp;lt;/code&amp;gt; directory which will probably fail due to missing server permissions to create new directories in &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
=== Example 2: Incoherent Directory Paths ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- This configuration is wrong. --&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;C:\userfiles&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/CKFinderJava-X.Y/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; is set to an absolute path, but the parameter points to a different location than &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; that is set relative to the application root.&lt;br /&gt;
&lt;br /&gt;
=== Result: CKFinder Misconfiguration ===&lt;br /&gt;
In both examples the parameters point to different server directories. As a result, some CKFinder features may not work correctly. The '''View''' function, for example, will be one of them.&lt;br /&gt;
&lt;br /&gt;
Why is that so?&lt;br /&gt;
&lt;br /&gt;
As mentioned above, CKFinder works on files and for this it uses the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter value. All uploaded files will thus be placed in the location that is set in this parameter. HTTP clients, on the other hand, will use the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; value, but in both examples presented above this parameter will point to a non-existent location which in some cases may lead to a lack of access to files.&lt;br /&gt;
&lt;br /&gt;
== More on baseURL ==&lt;br /&gt;
As stated above, if the &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; parameter is empty, CKFinder will try to deduce the &amp;lt;code&amp;gt;userfile&amp;lt;/code&amp;gt; path based on the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter value.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;baseURL&amp;gt;/userfiles/&amp;lt;/baseURL&amp;gt;&lt;br /&gt;
&amp;lt;baseDir&amp;gt;&amp;lt;/baseDir&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the server hosts more applications for one domain (like &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;www.example.com&amp;lt;/code&amp;gt;), the code above will not work for most of them. To be exact, it will work only for the application that is set as the default one for the domain.&lt;br /&gt;
&lt;br /&gt;
This may sound a bit enigmatic, but here is the explanation. &lt;br /&gt;
&lt;br /&gt;
If the server hosts multiple applications in one domain, the users usually call them in the following way (note this does not pertain to the default application):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava-X.Y/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://www.example.com/CKFinderJava-X.Y/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or the following way, where &amp;lt;code&amp;gt;filemanager&amp;lt;/code&amp;gt; is the ''context path'' for the &amp;lt;code&amp;gt;CKFinderJava-''X.Y''&amp;lt;/code&amp;gt; application:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/filemanager/&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://www.example.com/filemanager/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These applications are (physically) located in one directory (like &amp;lt;code&amp;gt;webapps&amp;lt;/code&amp;gt; for Tomcat or Jetty) and to differentiate between them, the user needs to include the name or alias (context path) of the called application in its URL.&lt;br /&gt;
When the &amp;lt;code&amp;gt;baseURL&amp;lt;/code&amp;gt; parameter is set to point directly to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; folder, CKFinder will create this folder in the application directory (like &amp;lt;code&amp;gt; CKFinderJava-''X.Y''/userfiles/&amp;lt;/code&amp;gt;). On the other hand, when the user will want to use the '''View''' option, the browser will search for the image in the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; directory (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://hostName/baseURL/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/CKFinderJava-X.Y/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The first address points to the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory placed in the root of the web applications directory. Since the CKFinder &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory is located elsewhere, the image will not be found and the browser will display the &amp;quot;404 &amp;amp;mdash; Not found&amp;quot; error.&lt;br /&gt;
&lt;br /&gt;
It is worth noting that the example above will work if you set one of the applications as a default for a domain (for example by using virtual hosting). Do remember, though, that this is only possible for one application per domain. With this configuration in place the &amp;lt;code&amp;gt;userfiles&amp;lt;/code&amp;gt; directory will be created in the application root, but by default the application root is associated with the domain name, so calling &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://localhost:8080/userfiles/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will let you search in the &amp;lt;code&amp;gt;CKFinderJava-''X.Y''&amp;lt;/code&amp;gt; application folder and display the image.&lt;/div&gt;</summary>
		<author><name>Anna</name></author>	</entry>

	</feed>