Root directory

Hello,

Lucee has been installed with the installer on c:
Where can i define another root directory (d: drive) ?

Thank you

In the Lucee-Directory under tomcat/conf/server.xml.
There is a xml-node for Host, there can you change the directory and also add other vhosts.

@David_Raschper Thank you David

Here is the node :slight_smile:

<Host name="127.0.0.1" appBase="webapps" unpackWARs="true" autoDeploy="true">

How can i change this if i want the D: drive to be the root dir ?

Thx

In the Host-Node must be a Context-Node with a docBase-Attribute.
Example from my Main-Host (my path is E.\luceeweb):

<Host name="127.0.0.1"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
	<Context path="" docBase="E:\luceeweb" />
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
	<Valve className="mod_cfml.core"
			loggingEnabled="false"
			maxContexts="200"
			timeBetweenContexts="2000"
			scanClassPaths="false"
			sharedKey="85d4d45d596b1c4b944975a3fcda79b4e901feb6b1fb4bb6254781d34addc639"
			/>
      </Host>

You can also add extra Vhost like this (for example.test):

<Host name="example.test"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
		<Context path="" docBase="E:\example" />
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="example_test_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
      </Host>

Works, thank you :slight_smile: