# Webroot directory change

**URL:** <https://dev.lucee.org/t/webroot-directory-change/590>\
**Category:** google-group-archive\
**Created:** [May 14, 2016, 3:58pm UTC](https://dev.lucee.org/t/webroot-directory-change/590 "2016-05-14T15:58:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre\_Larde](https://dev.lucee.org/user_avatar/dev.lucee.org/pierre_larde/32/852_2.png) [@Pierre\_Larde](https://dev.lucee.org/u/Pierre_Larde)\
**Post date:** [May 14, 2016, 3:58pm UTC](https://dev.lucee.org/t/webroot-directory-change/590/1 "2016-05-14T15:58:09Z")

</div>

How can I change the webroot directory ?

I can see in the Lucee Admin Overview the current value :  
C:\lucee\tomcat\webapps\ROOT  
I would like to change this to :  
C:\mydir  
or  
C:\mydir\ROOT

If possible ?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Jordan\_Michaels](https://dev.lucee.org/user_avatar/dev.lucee.org/jordan_michaels/32/577_2.png) [@Jordan\_Michaels](https://dev.lucee.org/u/Jordan_Michaels)\
**Post date:** [May 16, 2016, 6:50pm UTC](https://dev.lucee.org/t/webroot-directory-change/590/2 "2016-05-16T18:50:47Z")

</div>

You can configure this in your server.xml file. Once you change the file, don’t forget to restart tomcat so your changes take effect.–  
Kind regards,  
Jordan Michaels  
Vivio Technologies

----- Original Message -----  
From: “Pierre Larde” \<@Pierre_Larde\>  
To: “Lucee” [lucee@googlegroups.com](mailto:lucee@googlegroups.com)  
Sent: Saturday, May 14, 2016 8:58:09 AM  
Subject: [Lucee] Webroot directory change

How can I change the webroot directory ?

I can see in the Lucee Admin Overview the current value :  
C:\lucee\tomcat\webapps\ROOT  
I would like to change this to :  
C:\mydir  
or  
C:\mydir\ROOT

If possible ?  
Thanks.

## – Love Lucee? Become a supporter and be part of the Lucee project today! - [Lucee - Open Collective](http://lucee.org/supporters/become-a-supporter.html)

You received this message because you are subscribed to the Google Groups “Lucee” group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [lucee+unsubscribe@googlegroups.com](mailto:lucee+unsubscribe@googlegroups.com).  
To post to this group, send email to [lucee@googlegroups.com](mailto:lucee@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com](https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Pierre\_Larde](https://dev.lucee.org/user_avatar/dev.lucee.org/pierre_larde/32/852_2.png) [@Pierre\_Larde](https://dev.lucee.org/u/Pierre_Larde)\
**Post date:** [May 23, 2016, 8:57pm UTC](https://dev.lucee.org/t/webroot-directory-change/590/3 "2016-05-23T20:57:26Z")

</div>

Trying to change the webroot directory,  
I modified the server.xml file ,  
this line :

i put : docBase=“C:/SitesPlarts”

Then running this url : [http://192.168.1.2:8888/index\_pierre.cfm](http://192.168.1.2:8888/index_pierre.cfm)

I get an error , It is looking in : C:\lucee\tomcat\webapps\ROOT

Where do i need to modify in server.xml ?  
Thanks for help.  
PierreLe lundi 16 mai 2016 20:50:49 UTC+2, Jordan Michaels a écrit :

> You can configure this in your server.xml file. Once you change the file,  
> don’t forget to restart tomcat so your changes take effect.
> 
> –  
> Kind regards,  
> Jordan Michaels  
> Vivio Technologies
> 
> ----- Original Message -----  
> From: “Pierre Larde” \<[pie...@pl-arts.com](mailto:pie...@pl-arts.com) \<javascript:\>\>  
> To: “Lucee” \<[lu...@googlegroups.com](mailto:lu...@googlegroups.com) \<javascript:\>\>  
> Sent: Saturday, May 14, 2016 8:58:09 AM  
> Subject: [Lucee] Webroot directory change
> 
> How can I change the webroot directory ?
> 
> I can see in the Lucee Admin Overview the current value :  
> C:\lucee\tomcat\webapps\ROOT\   
> I would like to change this to :  
> C:\mydir\   
> or  
> C:\mydir\ROOT
> 
> If possible ?  
> Thanks.
> 
> ## – Love Lucee? Become a supporter and be part of the Lucee project today! - [http://lucee.org/supporters/become-a-supporter.html](http://lucee.org/supporters/become-a-supporter.html)
> 
> You received this message because you are subscribed to the Google Groups  
> “Lucee” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [lucee+un...@googlegroups.com](mailto:lucee+un...@googlegroups.com) \<javascript:\>.  
> To post to this group, send email to [lu...@googlegroups.com](mailto:lu...@googlegroups.com) \<javascript:\>.
> 
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com](https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Pierre\_Larde](https://dev.lucee.org/user_avatar/dev.lucee.org/pierre_larde/32/852_2.png) [@Pierre\_Larde](https://dev.lucee.org/u/Pierre_Larde)\
**Post date:** [May 23, 2016, 9:47pm UTC](https://dev.lucee.org/t/webroot-directory-change/590/4 "2016-05-23T21:47:54Z")

</div>

Yes, thank you  
I added   
in the first \<host tag, and it did work.  
Pierre.Le lundi 23 mai 2016 23:28:08 UTC+2, Jordan Michaels a écrit :

> You should just be able to add a context tag to it:
> 
> ```
> <Host name="127.0.0.1" appBase="webapps" 
> unpackWARs="true" autoDeploy="true"> 
> <Context path="" docBase="C:/SitesPlarts" /> 
> 
> ```
> 
> Don’t forget to restart tomcat so your changes take effect.
> 
> –  
> Kind regards,  
> Jordan Michaels  
> Vivio Technologies
> 
> ----- Original Message -----  
> From: “Pierre Larde” \<[pie...@pl-arts.com](mailto:pie...@pl-arts.com) \<javascript:\>\>  
> To: “Lucee” \<[lu...@googlegroups.com](mailto:lu...@googlegroups.com) \<javascript:\>\>  
> Sent: Monday, May 23, 2016 1:57:26 PM  
> Subject: Re: [Lucee] Webroot directory change
> 
> Trying to change the webroot directory,  
> I modified the server.xml file ,  
> this line :
> 
> i put : docBase=“C:/SitesPlarts”
> 
> Then running this url : [http://192.168.1.2:8888/index\_pierre.cfm](http://192.168.1.2:8888/index_pierre.cfm)
> 
> I get an error , It is looking in : C:\lucee\tomcat\webapps\ROOT
> 
> Where do i need to modify in server.xml ?  
> Thanks for help.  
> Pierre
> 
> Le lundi 16 mai 2016 20:50:49 UTC+2, Jordan Michaels a écrit :
> 
> > You can configure this in your server.xml file. Once you change the  
> > file,  
> > don’t forget to restart tomcat so your changes take effect.
> > 
> > –  
> > Kind regards,  
> > Jordan Michaels  
> > Vivio Technologies
> > 
> > ----- Original Message -----  
> > From: “Pierre Larde” \<[pie...@pl-arts.com](mailto:pie...@pl-arts.com) \<javascript:\>\>  
> > To: “Lucee” \<[lu...@googlegroups.com](mailto:lu...@googlegroups.com) \<javascript:\>\>  
> > Sent: Saturday, May 14, 2016 8:58:09 AM  
> > Subject: [Lucee] Webroot directory change
> > 
> > How can I change the webroot directory ?
> > 
> > I can see in the Lucee Admin Overview the current value :  
> > C:\lucee\tomcat\webapps\ROOT\   
> > I would like to change this to :  
> > C:\mydir\   
> > or  
> > C:\mydir\ROOT
> > 
> > If possible ?  
> > Thanks.
> > 
> > ## – Love Lucee? Become a supporter and be part of the Lucee project today! - [http://lucee.org/supporters/become-a-supporter.html](http://lucee.org/supporters/become-a-supporter.html)
> > 
> > You received this message because you are subscribed to the Google  
> > Groups  
> > “Lucee” group.  
> > To unsubscribe from this group and stop receiving emails from it, send  
> > an  
> > email to [lucee+un...@googlegroups.com](mailto:lucee+un...@googlegroups.com) \<javascript:\>.  
> > To post to this group, send email to [lu...@googlegroups.com](mailto:lu...@googlegroups.com)  
> > \<javascript:\>.
> > 
> > To view this discussion on the web visit
> 
> [https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com](https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com).
> 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> ## – Love Lucee? Become a supporter and be part of the Lucee project today! - [http://lucee.org/supporters/become-a-supporter.html](http://lucee.org/supporters/become-a-supporter.html)
> 
> You received this message because you are subscribed to the Google Groups  
> “Lucee” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [lucee+un...@googlegroups.com](mailto:lucee+un...@googlegroups.com) \<javascript:\>.  
> To post to this group, send email to [lu...@googlegroups.com](mailto:lu...@googlegroups.com) \<javascript:\>.
> 
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/lucee/ea7a704b-853b-41b0-bed7-edddcdbe2f63%40googlegroups.com](https://groups.google.com/d/msgid/lucee/ea7a704b-853b-41b0-bed7-edddcdbe2f63%40googlegroups.com).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jordan\_Michaels](https://dev.lucee.org/user_avatar/dev.lucee.org/jordan_michaels/32/577_2.png) [@Jordan\_Michaels](https://dev.lucee.org/u/Jordan_Michaels)\
**Post date:** [May 23, 2016, 9:27pm UTC](https://dev.lucee.org/t/webroot-directory-change/590/5 "2016-05-23T21:27:58Z")

</div>

You should just be able to add a context tag to it:

```
  <Host name="127.0.0.1" appBase="webapps"
        unpackWARs="true" autoDeploy="true">
        <Context path="" docBase="C:/SitesPlarts" />

```

Don’t forget to restart tomcat so your changes take effect.–  
Kind regards,  
Jordan Michaels  
Vivio Technologies

----- Original Message -----  
From: “Pierre Larde” \<@Pierre_Larde\>  
To: “Lucee” [lucee@googlegroups.com](mailto:lucee@googlegroups.com)  
Sent: Monday, May 23, 2016 1:57:26 PM  
Subject: Re: [Lucee] Webroot directory change

Trying to change the webroot directory,  
I modified the server.xml file ,  
this line :

i put : docBase=“C:/SitesPlarts”

Then running this url : [http://192.168.1.2:8888/index\_pierre.cfm](http://192.168.1.2:8888/index_pierre.cfm)

I get an error , It is looking in : C:\lucee\tomcat\webapps\ROOT

Where do i need to modify in server.xml ?  
Thanks for help.  
Pierre

Le lundi 16 mai 2016 20:50:49 UTC+2, Jordan Michaels a écrit :

> You can configure this in your server.xml file. Once you change the file,  
> don’t forget to restart tomcat so your changes take effect.
> 
> –  
> Kind regards,  
> Jordan Michaels  
> Vivio Technologies
> 
> ----- Original Message -----  
> From: “Pierre Larde” \<pie…@pl-arts.com \<javascript:\>\>  
> To: “Lucee” \<lu…@googlegroups.com \<javascript:\>\>  
> Sent: Saturday, May 14, 2016 8:58:09 AM  
> Subject: [Lucee] Webroot directory change
> 
> How can I change the webroot directory ?
> 
> I can see in the Lucee Admin Overview the current value :  
> C:\lucee\tomcat\webapps\ROOT\  
> I would like to change this to :  
> C:\mydir\  
> or  
> C:\mydir\ROOT
> 
> If possible ?  
> Thanks.
> 
> ## – Love Lucee? Become a supporter and be part of the Lucee project today! - [Lucee - Open Collective](http://lucee.org/supporters/become-a-supporter.html)
> 
> You received this message because you are subscribed to the Google Groups  
> “Lucee” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to lucee+un…@googlegroups.com \<javascript:\>.  
> To post to this group, send email to lu…@googlegroups.com \<javascript:\>.
> 
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com](https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## – Love Lucee? Become a supporter and be part of the Lucee project today! - [Lucee - Open Collective](http://lucee.org/supporters/become-a-supporter.html)

You received this message because you are subscribed to the Google Groups “Lucee” group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [lucee+unsubscribe@googlegroups.com](mailto:lucee+unsubscribe@googlegroups.com).  
To post to this group, send email to [lucee@googlegroups.com](mailto:lucee@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/lucee/ea7a704b-853b-41b0-bed7-edddcdbe2f63%40googlegroups.com](https://groups.google.com/d/msgid/lucee/ea7a704b-853b-41b0-bed7-edddcdbe2f63%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
