Webroot directory change

1,176 views
Skip to first unread message

Pierre Larde

unread,
May 14, 2016, 11:58:10 AM5/14/16
to Lucee
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.

Jordan Michaels

unread,
May 16, 2016, 2:50:49 PM5/16/16
to lu...@googlegroups.com
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
--
Love Lucee? Become a supporter and be part of the Lucee project today! - 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.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/2ca646f9-dcb2-4fd9-b4bf-e7d9c821972d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pierre Larde

unread,
May 23, 2016, 4:57:27 PM5/23/16
to Lucee
Trying to change the webroot directory,
I modified the server.xml file ,
this line :
<Host name="127.0.0.1"  appBase="webapps"
            unpackWARs="true" autoDeploy="true" docBase="C:/SitesPlarts">

i put : docBase="C:/SitesPlarts"

Then running this url   :  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

Jordan Michaels

unread,
May 23, 2016, 5:28:08 PM5/23/16
to lu...@googlegroups.com
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.
> 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.
>
> For more options, visit 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
---
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.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/ea7a704b-853b-41b0-bed7-edddcdbe2f63%40googlegroups.com.

Pierre Larde

unread,
May 23, 2016, 5:47:54 PM5/23/16
to Lucee
Yes, thank you
I added <Context path="" docBase="C:/SitesPlarts" />
in the first <host tag, and it did work.
Pierre.
Reply all
Reply to author
Forward
0 new messages