Virtualhost configuration on tomcat help request

141 views
Skip to first unread message

Enrico Rosso

unread,
Feb 27, 2015, 8:35:31 AM2/27/15
to lu...@googlegroups.com
Hello everybody. I hope my question is not too dummy or O/T.


I downloaded the express standalone version of lucee in order to move from Railo.
Sadly I stumble on tomcat for the first time and while I've searched all the day in documentations and tested i couldn't achieve this:

I'm trying to get this (i guess simple) virtualhost configuration:

xxx.mysite.com --> webapp located in {installdir}/webapps/xxx/
yyy.mysite.com --> webapp located in {installdir}/webapps/yyy/

where {installdir} is the directory where lucee express was unzipped.

so far I understood I should configure {installdir}/conf/server.xml

but couldn't find any example of how to make it work.

May I please have some "help for dummy" or be pointed in the right direction?

dns is configured ok.

Thank you very very much.

Andrew Dixon

unread,
Feb 27, 2015, 8:48:27 AM2/27/15
to lu...@googlegroups.com
Open the server.xml file and go to the bottom, then just before the closing "Engine" tag (</Engine>) add an entry that looks like:

<Host name="[HOST_NAME]" appBase="webapps">
   <Context path="" docBase="[DOC_BASE]" />
</Host>

Where the [HOST_NAME] is your hostname, e.g. www.domain.com and [DOC_BASE] is your document base folder, e.g /var/www/html/www.domain.com/

Kind regards,

Andrew
about.me
mso - Lucee - Member

--
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/cc547d52-24e1-4510-9a74-36bbdf08a665%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Dixon

unread,
Feb 27, 2015, 8:48:37 AM2/27/15
to lu...@googlegroups.com
Oh and then restart Tomcat.

Kind regards,

Andrew
about.me
mso - Lucee - Member

Enrico Rosso

unread,
Feb 27, 2015, 8:57:45 AM2/27/15
to lu...@googlegroups.com
Thank You very very much, works perfectly! I struggled on this simple thing for some time.

Kind regards to you,

Enrico
Reply all
Reply to author
Forward
0 new messages