You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Salmon <mi...@datagraf.dk> on 2014/05/27 10:32:51 UTC
Hosts and ROOT folder
Hi all
I'am new to Tomcat, so please do not kill me if the issue is simple or my english is bad.
I'am running Tomcat 7.0.42 on WinServer 2012 R2. It is front end for a Digital Asset Management system. The Tomcat is installed as part of the DAM system and could be different from a plain vanilla install.
My problem is Host and path to webapps.
I basically only have one webapp witch is duplicated when I get a new customer.
But when I deploy a new webapp and make a host element in conf\server.xml, I have to make a folder named ROOT in my webapp (webapps/customer/ROOT) and move all files to this folder to get things working. We also did that in a very old version (3 or 4), but haven't done that in several years.
I can see the default webapp is also in a ROOT folder.
When I put the files in the ROOT folder my application guy can't see the site in his administration tool for the DAM system.
Where is it defined that files for my webapps goes in a ROOT folder?
I tried to make a folder in conf/Catalina/ reflecting the name of the webapp, I can't get that to work either.
My last try will be to define docbase in the host element in server.conf, but in the documentation this is not recommended.
All help would be appreciated. If you need more info please tell me.
Thanks
Venlig hilsen / Best regards
Michael Salmon IT-Chef
t: +45 87 95 55 43
m: +45 24 86 40 08
[datagraf]<http://www.datagraf.dk/>
Jaegerg?rdsgade 122, DK-8000 Aarhus C * t: +45 87 95 55 55 * www.datagraf.dk<http://www.datagraf.dk>
Re: SV: Hosts and ROOT folder
Posted by Mark Thomas <ma...@apache.org>.
On 27/05/2014 11:59, Michael Salmon wrote:
> Hi
>
> Here is my server.xml
<snip/>
> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
>
> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
> prefix="localhost_access_log." suffix=".txt"
> pattern="%h %l %u %t "%r" %s %b" />
> </Host>
>
> <Host name="nilfisk-alto" debug="0" appBase="webapps/nilfisk-alto" unpackWARs="true">
> <Alias>nilfisk-alto.datagraf.dk</Alias>
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs" prefix="virtual_nilfisk-alto." suffix=".log"
> timestamp="true"/>
> </Host>
<snip/>
The problem is that you have overlapping appBase settings between
virtual hosts.
The simplest solution is to change the appBase for localhost to
"webapps/localhost" and move any web applications in webapps into
webapps/localhost.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
SV: Hosts and ROOT folder
Posted by Michael Salmon <mi...@datagraf.dk>.
Learn something! Screendump is no-go.
Here is the structure:
C:\Program Files\Canto\Cumulus Web Solutions\apache-tomcat-7.0.42\webapps\coop\R
OOT>dir
Volume in drive C has no label.
Volume Serial Number is 3439-CAF5
Directory of C:\Program Files\Canto\Cumulus Web Solutions\apache-tomcat-7.0.42\
webapps\coop\ROOT
27-05-2014 07:10 <DIR> .
27-05-2014 07:10 <DIR> ..
27-05-2014 07:10 986 addtocollectionbasket.jspx
27-05-2014 07:10 4.639 advancedsearchcategoriesexistingvalues.jspx
27-05-2014 07:10 1.977 advancedsearchconditionadd.jspx
27-05-2014 07:10 872 advancedsearchconditioncheck.jspx
27-05-2014 07:10 825 advancedsearchconditiondelete.jspx
27-05-2014 07:10 1.839 advancedsearchconditionedit.jspx
27-05-2014 07:10 4.511 advancedsearchconditioneditor.jspx
27-05-2014 07:10 2.914 advancedsearchconditioneditorboolean.jspx
27-05-2014 07:10 3.007 advancedsearchconditioneditorcategories.jspx
27-05-2014 07:10 5.211 advancedsearchconditioneditordatasize.jspx
27-05-2014 07:10 5.219 advancedsearchconditioneditordatasizelong.js
px
27-05-2014 07:10 21.464 advancedsearchconditioneditordate.jspx
27-05-2014 07:10 12.524 advancedsearchconditioneditordateonly.jspx
27-05-2014 07:10 5.197 advancedsearchconditioneditordouble.jspx
27-05-2014 07:10 5.341 advancedsearchconditioneditorinteger.jspx
27-05-2014 07:10 3.754 advancedsearchconditioneditorlabel.jspx
27-05-2014 07:10 5.239 advancedsearchconditioneditorlengthininch.js
px
27-05-2014 07:10 5.299 advancedsearchconditioneditorlong.jspx
27-05-2014 07:10 4.044 advancedsearchconditioneditorrating.jspx
27-05-2014 07:10 5.225 advancedsearchconditioneditorresolution.jspx
27-05-2014 07:10 5.987 advancedsearchconditioneditorstring.jspx
27-05-2014 07:10 3.673 advancedsearchconditioneditorstringenum.jspx
27-05-2014 07:10 5.212 advancedsearchconditioneditortimeonly.jspx
27-05-2014 07:10 848 advancedsearchconditionsave.jspx
27-05-2014 07:10 8.994 advancedsearchcontainer.jspx
27-05-2014 07:10 1.913 advancedsearchfieldlistpopup.jspx
27-05-2014 07:10 3.284 advancedsearchstatistics.jspx
27-05-2014 07:10 1.651 applicationfooter.jspx
27-05-2014 07:10 781 boxcollapsestate.jspx
27-05-2014 07:10 9.420 breadcrumb.jspx
27-05-2014 07:10 782 cancelprocess.jspx
27-05-2014 07:10 9.111 categoryfilter.jspx
27-05-2014 07:10 1.144 changelanguage.jspx
27-05-2014 07:10 1.101 changepassword.jspx
27-05-2014 07:10 5.912 changepasswordconfiguration.jspx
27-05-2014 07:10 905 changepasswordrequest.jspx
27-05-2014 07:10 5.130 changepasswordrequestconfiguration.jspx
27-05-2014 07:10 3.347 changepasswordrequestsuccess.jspx
27-05-2014 07:10 1.899 changepasswordrequestwindow.jspx
27-05-2014 07:10 3.299 changepasswordrequestwindowconfiguration.jsp
x
27-05-2014 07:10 2.863 changepasswordsuccess.jspx
27-05-2014 07:10 793 changerecordviewthumbnailsize.jspx
27-05-2014 07:10 1.095 changetheme.jspx
27-05-2014 07:10 664 changeviewsettings.jspx
27-05-2014 07:10 2.037 collectionbasketbulkfunctions.jspx
27-05-2014 07:10 1.822 collectionbasketbutton.jspx
27-05-2014 07:10 785 collectionbasketclear.jspx
27-05-2014 07:10 792 collectionbasketdelete.jspx
27-05-2014 07:10 787 collectionbasketrename.jspx
27-05-2014 07:10 811 collectionbasketreveal.jspx
27-05-2014 07:10 814 collectionbasketrevealdeletefilter.jspx
27-05-2014 07:10 875 collectionbasketsetcurrent.jspx
27-05-2014 07:10 38.508 collectionbasketview.jspx
27-05-2014 07:10 995 communitydiscussionhandler.jspx
27-05-2014 07:10 4.489 contact.jspx
27-05-2014 07:10 3.354 contactview.jspx
27-05-2014 07:10 3.651 createaccount.jspx
27-05-2014 07:10 6.400 createaccountconfiguration.jspx
27-05-2014 07:10 2.444 createaccountwindow.jspx
27-05-2014 07:10 4.926 createaccountwindowconfiguration.jspx
27-05-2014 07:10 2.823 createpincollection.jspx
27-05-2014 07:10 28.533 createpincollectionconfiguration.jspx
27-05-2014 07:10 2.816 createuploadcollection.jspx
27-05-2014 07:10 29.322 createuploadcollectionconfiguration.jspx
06-05-2014 07:43 <DIR> customizations
27-05-2014 07:10 799 deleteprocess.jspx
27-05-2014 07:10 1.226 directdownloadconfiguration.jspx
27-05-2014 07:10 1.214 directprintconfiguration.jspx
27-05-2014 07:10 905 download.jspx
27-05-2014 07:10 3.353 downloadasync.jspx
27-05-2014 07:10 12.369 downloadconfiguration.jspx
27-05-2014 07:10 13.890 downloadstate.jspx
27-05-2014 07:10 1.448 earlylogin.jspx
27-05-2014 07:10 3.015 encryptionhelper.jspx
27-05-2014 07:10 20.332 error.jspx
27-05-2014 07:10 10.645 fieldfilter.jspx
27-05-2014 07:10 1.839 fieldfiltercontainer.jspx
27-05-2014 07:10 686 fieldfilterreset.jspx
27-05-2014 07:10 7.360 header.jspx
27-05-2014 07:10 15.191 helpview.jspx
27-05-2014 07:10 3.870 htmlhead.jspx
27-05-2014 07:10 782 imagecouch.jspx
27-05-2014 07:10 1.011 imagecouchcancel.jspx
27-05-2014 07:10 45.579 imagecouchconfiguration.jspx
27-05-2014 07:10 1.844 index.jspx
27-05-2014 07:10 5.248 infoview.jspx
27-05-2014 07:10 7.300 infovieweditcategoryfield.jspx
27-05-2014 07:10 16.044 infovieweditfield.jspx
27-05-2014 07:10 8.474 infoviewfieldlist.jspx
27-05-2014 07:10 4.598 infoviewfunctions.jspx
27-05-2014 07:10 23.188 infoviewfunctionscolumn.jspx
27-05-2014 07:10 6.795 infoviewrelation.jspx
27-05-2014 07:10 2.604 infowindow.jspx
27-05-2014 07:10 2.044 initlanguageandtheme.jspx
02-05-2014 07:35 <DIR> js
27-05-2014 07:10 1.476 latelogin.jspx
27-05-2014 07:10 10.892 login.jspx
27-05-2014 07:10 1.118 logout.jspx
02-05-2014 07:35 <DIR> META-INF
27-05-2014 07:10 20.338 mypincollectioninfowindow.jspx
27-05-2014 07:10 2.050 mypincollections.jspx
27-05-2014 07:10 793 mypincollectionsdelete.jspx
27-05-2014 07:10 3.746 mypincollectionslistwindow.jspx
27-05-2014 07:10 923 mypincollectionsreveal.jspx
27-05-2014 07:10 926 mypincollectionsrevealdeletefilter.jspx
27-05-2014 07:10 941 mypincollectionstogglerecipient.jspx
27-05-2014 07:10 5.157 navigation.jspx
27-05-2014 07:10 4.635 pincollection.jspx
27-05-2014 07:10 1.183 pincollectionbrowseusersautocompletepopup.js
px
27-05-2014 07:10 1.113 pincollectiondownloadconfiguration.jspx
27-05-2014 07:10 2.004 pincollectionfunctionbar.jspx
27-05-2014 07:10 2.412 pincollectionheader.jspx
27-05-2014 07:10 4.089 pincollectioninfoview.jspx
27-05-2014 07:10 4.541 pincollectioninfowindow.jspx
27-05-2014 07:10 4.701 pincollectionlogin.jspx
27-05-2014 07:10 1.618 pincollectionlogincheck.jspx
27-05-2014 07:10 1.278 pincollectionprintconfiguration.jspx
27-05-2014 07:10 8.176 pincollectionsites.jspx
27-05-2014 07:10 1.713 pincollectionsortingstate.jspx
27-05-2014 07:10 1.670 pincollectionthumbnailslidercontainer.jspx
27-05-2014 07:10 11.663 pincollectionthumbnailview.jspx
02-05-2014 07:35 <DIR> plugins
27-05-2014 07:10 6.239 previewview.jspx
27-05-2014 07:10 2.763 previewviewaudioplayer.jspx
27-05-2014 07:10 9.748 previewviewdiscussion.jspx
27-05-2014 07:10 10.807 previewviewfunctions.jspx
27-05-2014 07:10 9.964 previewviewhotspot.jspx
27-05-2014 07:10 6.701 previewviewimagedescriptor.jspx
27-05-2014 07:10 2.959 previewviewvideoplayer.jspx
27-05-2014 07:10 820 print.jspx
27-05-2014 07:10 11.935 printconfiguration.jspx
27-05-2014 07:10 663 quicksearch.jspx
27-05-2014 07:10 1.195 quicksearchautocompletepopup.jspx
27-05-2014 07:10 1.735 quicksearchbutton.jspx
27-05-2014 07:10 1.353 recordfooter.jspx
27-05-2014 07:10 3.241 recordfunctionsbar.jspx
27-05-2014 07:10 802 recordsreveal.jspx
27-05-2014 07:10 805 recordsrevealdeletefilter.jspx
27-05-2014 07:10 2.377 recordstateincollectionbasket.jspx
27-05-2014 07:10 1.587 recordviewsetchooser.jspx
27-05-2014 07:10 796 removefromcollectionbasket.jspx
27-05-2014 07:10 13.540 reportview.jspx
27-05-2014 07:10 16.221 rvs2css.jspx
27-05-2014 07:10 651 search.jspx
27-05-2014 07:10 3.218 searchtermstatistics.jspx
27-05-2014 07:10 819 sessionalive.jspx
27-05-2014 07:10 660 setsorting.jspx
27-05-2014 07:10 1.883 setsortingdirection.jspx
27-05-2014 07:10 663 setviewset.jspx
27-05-2014 07:10 4.164 setviewsets.jspx
27-05-2014 07:10 1.769 ShowRecord.jsp
27-05-2014 07:10 14.219 sites.jspx
27-05-2014 07:10 1.583 sortingstate.jspx
27-05-2014 07:10 1.376 sso.jspx
27-05-2014 07:10 2.802 switchsession.jspx
02-05-2014 07:35 <DIR> themes
27-05-2014 07:10 1.670 thumbnailslidercontainer.jspx
27-05-2014 07:10 14.728 thumbnailview.jspx
27-05-2014 07:10 13.562 tooltipinfoview.jspx
27-05-2014 07:10 878 updaterecord.jspx
27-05-2014 07:10 4.973 uploadahsandtemplates.jspx
27-05-2014 07:10 15.575 uploadcategoryview.jspx
27-05-2014 07:10 5.703 uploadcollection.jspx
27-05-2014 07:10 5.625 uploadcollectionbody.jspx
27-05-2014 07:10 1.629 uploadcollectionheader.jspx
27-05-2014 07:10 5.004 uploadcollectionlogin.jspx
27-05-2014 07:10 2.229 uploadcollectionlogincheck.jspx
27-05-2014 07:10 1.606 uploadcollectionname.jspx
27-05-2014 07:10 2.991 uploadcollectionrecordslist.jspx
27-05-2014 07:10 6.938 uploadcollectionsites.jspx
27-05-2014 07:10 5.102 uploadconfiguration.jspx
27-05-2014 07:10 1.259 uploadpanel.jspx
27-05-2014 07:10 4.142 uploadstate.jspx
27-05-2014 07:10 989 usercommenthandler.jspx
27-05-2014 07:10 736 validaterecord.jspx
27-05-2014 07:10 1.739 viewchooser.jspx
02-05-2014 11:38 <DIR> WEB-INF
171 File(s) 876.824 bytes
8 Dir(s) 24.443.654.144 bytes free
C:\Program Files\Canto\Cumulus Web Solutions\apache-tomcat-7.0.42\webapps\coop\R
OOT>
Venlig hilsen / Best regards
Michael Salmon IT-Chef
t: +45 87 95 55 43
m: +45 24 86 40 08
[datagraf]<http://www.datagraf.dk/>
Jægergårdsgade 122, DK-8000 Aarhus C · t: +45 87 95 55 55 · www.datagraf.dk<http://www.datagraf.dk>
Fra: Michael Salmon [mailto:michael.salmon@datagraf.dk]
Sendt: 27. maj 2014 12:59
Til: Tomcat Users List
Emne: SV: Hosts and ROOT folder
Hi
Here is my server.xml
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/css,application/javascript" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<ns:FindAddsSubCategories>1</ns:FindAddsSubCategories>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="nilfisk-alto" debug="0" appBase="webapps/nilfisk-alto" unpackWARs="true">
<Alias>nilfisk-alto.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_nilfisk-alto." suffix=".log" timestamp="true"/>
</Host>
<Host name="coop" debug="0" appBase="webapps/coop" unpackWARs="true">
<Alias>coop.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_coop." suffix=".log" timestamp="true"/>
</Host>
<Host name="rosepoultry" debug="0" appBase="webapps/rosepoultry" unpackWARs="true">
<Alias>rosepoultry.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_rosepoultry." suffix=".log" timestamp="true"/>
</Host>
<Host name="webbase" debug="0" appBase="webapps/webbase" unpackWARs="true">
<Alias>webbase.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_webbase." suffix=".log" timestamp="true"/>
</Host>
<Host name="webbaseadmin" debug="0" appBase="webapps/webbaseadmin" unpackWARs="true">
<Alias>webbaseadmin9.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_webbaseadmin." suffix=".log" timestamp="true"/>
</Host>
<Host name="hjerteforeningen" debug="0" appBase="webapps/hjerteforeningen" unpackWARs="true">
<Alias>hjerteforeningen.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_hjerteforeningen." suffix=".log" timestamp="true"/>
</Host>
<Host name="naturgas" debug="0" appBase="webapps/naturgas" unpackWARs="true">
<Alias>naturgas.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_naturgas." suffix=".log" timestamp="true"/>
</Host>
<Host name="menighedsraad" debug="0" appBase="webapps/menighedsraad" unpackWARs="true">
<Alias>menighedsraad.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_menighedsraad." suffix=".log" timestamp="true"/>
</Host>
<Host name="pixbase" debug="0" appBase="webapps/pixbase" unpackWARs="true">
<Alias>pixbase.datagraf.dk</Alias>
<Alias>pix.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_pixbase." suffix=".log" timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>
Here is the structure
[cid:image001.png@01CF79A8.21186FF0]
Thanks again
Venlig hilsen / Best regards
Michael Salmon IT-Chef
t: +45 87 95 55 43
m: +45 24 86 40 08
[datagraf]<http://www.datagraf.dk/>
Jægergårdsgade 122, DK-8000 Aarhus C · t: +45 87 95 55 55 · www.datagraf.dk<http://www.datagraf.dk>
Venlig hilsen / Best regards
Michael Salmon IT-Chef
t: +45 87 95 55 43
m: +45 24 86 40 08
[datagraf]<http://www.datagraf.dk/>
Jægergårdsgade 122, DK-8000 Aarhus C · t: +45 87 95 55 55 · www.datagraf.dk<http://www.datagraf.dk>
-----Oprindelig meddelelse-----
Fra: Mark Thomas [mailto:markt@apache.org]
Sendt: 27. maj 2014 11:28
Til: Tomcat Users List
Emne: Re: Hosts and ROOT folder
On 27/05/2014 09:32, Michael Salmon wrote:
> Hi all
>
> I'am new to Tomcat, so please do not kill me if the issue is simple or my english is bad.
We won't kill you. We might point you towards some documentation though ;)
And don't worry about your English. I am sure it is orders of magnitude better than most of us here could manage in your native language.
> I'am running Tomcat 7.0.42 on WinServer 2012 R2. It is front end for a Digital Asset Management system. The Tomcat is installed as part of the DAM system and could be different from a plain vanilla install.
>
> My problem is Host and path to webapps.
>
> I basically only have one webapp witch is duplicated when I get a new customer.
>
> But when I deploy a new webapp and make a host element in conf\server.xml, I have to make a folder named ROOT in my webapp (webapps/customer/ROOT) and move all files to this folder to get things working. We also did that in a very old version (3 or 4), but haven't done that in several years.
> I can see the default webapp is also in a ROOT folder.
>
> When I put the files in the ROOT folder my application guy can't see the site in his administration tool for the DAM system.
>
> Where is it defined that files for my webapps goes in a ROOT folder?
>
> I tried to make a folder in conf/Catalina/ reflecting the name of the webapp, I can't get that to work either.
> My last try will be to define docbase in the host element in server.conf, but in the documentation this is not recommended.
>
> All help would be appreciated. If you need more info please tell me.
OK. The simplest thing will be to provide us with the following:
1) Your full server.xml. Please remove all comments and replace any sensitive information (e.g. passwords, customer names etc.)
2) The file structure under webapps.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org<ma...@tomcat.apache.org>
For additional commands, e-mail: users-help@tomcat.apache.org<ma...@tomcat.apache.org>
SV: Hosts and ROOT folder
Posted by Michael Salmon <mi...@datagraf.dk>.
Hi
Here is my server.xml
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/css,application/javascript" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<ns:FindAddsSubCategories>1</ns:FindAddsSubCategories>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="nilfisk-alto" debug="0" appBase="webapps/nilfisk-alto" unpackWARs="true">
<Alias>nilfisk-alto.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_nilfisk-alto." suffix=".log" timestamp="true"/>
</Host>
<Host name="coop" debug="0" appBase="webapps/coop" unpackWARs="true">
<Alias>coop.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_coop." suffix=".log" timestamp="true"/>
</Host>
<Host name="rosepoultry" debug="0" appBase="webapps/rosepoultry" unpackWARs="true">
<Alias>rosepoultry.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_rosepoultry." suffix=".log" timestamp="true"/>
</Host>
<Host name="webbase" debug="0" appBase="webapps/webbase" unpackWARs="true">
<Alias>webbase.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_webbase." suffix=".log" timestamp="true"/>
</Host>
<Host name="webbaseadmin" debug="0" appBase="webapps/webbaseadmin" unpackWARs="true">
<Alias>webbaseadmin9.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_webbaseadmin." suffix=".log" timestamp="true"/>
</Host>
<Host name="hjerteforeningen" debug="0" appBase="webapps/hjerteforeningen" unpackWARs="true">
<Alias>hjerteforeningen.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_hjerteforeningen." suffix=".log" timestamp="true"/>
</Host>
<Host name="naturgas" debug="0" appBase="webapps/naturgas" unpackWARs="true">
<Alias>naturgas.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_naturgas." suffix=".log" timestamp="true"/>
</Host>
<Host name="menighedsraad" debug="0" appBase="webapps/menighedsraad" unpackWARs="true">
<Alias>menighedsraad.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_menighedsraad." suffix=".log" timestamp="true"/>
</Host>
<Host name="pixbase" debug="0" appBase="webapps/pixbase" unpackWARs="true">
<Alias>pixbase.datagraf.dk</Alias>
<Alias>pix.datagraf.dk</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_pixbase." suffix=".log" timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>
Here is the structure
[cid:image001.png@01CF79A8.21186FF0]
Thanks again
Venlig hilsen / Best regards
Michael Salmon IT-Chef
t: +45 87 95 55 43
m: +45 24 86 40 08
[datagraf]<http://www.datagraf.dk/>
Jaegerg?rdsgade 122, DK-8000 Aarhus C * t: +45 87 95 55 55 * www.datagraf.dk<http://www.datagraf.dk>
-----Oprindelig meddelelse-----
Fra: Mark Thomas [mailto:markt@apache.org]
Sendt: 27. maj 2014 11:28
Til: Tomcat Users List
Emne: Re: Hosts and ROOT folder
On 27/05/2014 09:32, Michael Salmon wrote:
> Hi all
>
> I'am new to Tomcat, so please do not kill me if the issue is simple or my english is bad.
We won't kill you. We might point you towards some documentation though ;)
And don't worry about your English. I am sure it is orders of magnitude better than most of us here could manage in your native language.
> I'am running Tomcat 7.0.42 on WinServer 2012 R2. It is front end for a Digital Asset Management system. The Tomcat is installed as part of the DAM system and could be different from a plain vanilla install.
>
> My problem is Host and path to webapps.
>
> I basically only have one webapp witch is duplicated when I get a new customer.
>
> But when I deploy a new webapp and make a host element in conf\server.xml, I have to make a folder named ROOT in my webapp (webapps/customer/ROOT) and move all files to this folder to get things working. We also did that in a very old version (3 or 4), but haven't done that in several years.
> I can see the default webapp is also in a ROOT folder.
>
> When I put the files in the ROOT folder my application guy can't see the site in his administration tool for the DAM system.
>
> Where is it defined that files for my webapps goes in a ROOT folder?
>
> I tried to make a folder in conf/Catalina/ reflecting the name of the webapp, I can't get that to work either.
> My last try will be to define docbase in the host element in server.conf, but in the documentation this is not recommended.
>
> All help would be appreciated. If you need more info please tell me.
OK. The simplest thing will be to provide us with the following:
1) Your full server.xml. Please remove all comments and replace any sensitive information (e.g. passwords, customer names etc.)
2) The file structure under webapps.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org<ma...@tomcat.apache.org>
For additional commands, e-mail: users-help@tomcat.apache.org<ma...@tomcat.apache.org>
Re: Hosts and ROOT folder
Posted by Mark Thomas <ma...@apache.org>.
On 27/05/2014 09:32, Michael Salmon wrote:
> Hi all
>
> I'am new to Tomcat, so please do not kill me if the issue is simple or my english is bad.
We won't kill you. We might point you towards some documentation though ;)
And don't worry about your English. I am sure it is orders of magnitude
better than most of us here could manage in your native language.
> I'am running Tomcat 7.0.42 on WinServer 2012 R2. It is front end for a Digital Asset Management system. The Tomcat is installed as part of the DAM system and could be different from a plain vanilla install.
>
> My problem is Host and path to webapps.
>
> I basically only have one webapp witch is duplicated when I get a new customer.
>
> But when I deploy a new webapp and make a host element in conf\server.xml, I have to make a folder named ROOT in my webapp (webapps/customer/ROOT) and move all files to this folder to get things working. We also did that in a very old version (3 or 4), but haven't done that in several years.
> I can see the default webapp is also in a ROOT folder.
>
> When I put the files in the ROOT folder my application guy can't see the site in his administration tool for the DAM system.
>
> Where is it defined that files for my webapps goes in a ROOT folder?
>
> I tried to make a folder in conf/Catalina/ reflecting the name of the webapp, I can't get that to work either.
> My last try will be to define docbase in the host element in server.conf, but in the documentation this is not recommended.
>
> All help would be appreciated. If you need more info please tell me.
OK. The simplest thing will be to provide us with the following:
1) Your full server.xml. Please remove all comments and replace any
sensitive information (e.g. passwords, customer names etc.)
2) The file structure under webapps.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Hosts and ROOT folder
Posted by André Warnier <aw...@ice-sa.com>.
Michael Salmon wrote:
> Hi all
>
> I'am new to Tomcat, so please do not kill me if the issue is simple or my english is bad.
>
> I'am running Tomcat 7.0.42 on WinServer 2012 R2. It is front end for a Digital Asset Management system. The Tomcat is installed as part of the DAM system and could be different from a plain vanilla install.
>
> My problem is Host and path to webapps.
>
> I basically only have one webapp witch is duplicated when I get a new customer.
>
> But when I deploy a new webapp and make a host element in conf\server.xml, I have to make a folder named ROOT in my webapp (webapps/customer/ROOT) and move all files to this folder to get things working. We also did that in a very old version (3 or 4), but haven't done that in several years.
> I can see the default webapp is also in a ROOT folder.
>
> When I put the files in the ROOT folder my application guy can't see the site in his administration tool for the DAM system.
>
> Where is it defined that files for my webapps goes in a ROOT folder?
>
> I tried to make a folder in conf/Catalina/ reflecting the name of the webapp, I can't get that to work either.
> My last try will be to define docbase in the host element in server.conf, but in the documentation this is not recommended.
>
> All help would be appreciated. If you need more info please tell me.
>
Well, you're right, it's hard not to kill you, but we will try. This list would quickly
get boring if we killed all the newcomers. And I personally welcome that kind of question
anway, because it is one of the few kinds which I can answer, so I get bonus points.
First, a note : whenever possible, you should try to avoid modifying conf/server.xml.
That's mainly because if you make a change there, you have to restart Tomcat to make it
notice.
But in your case, if you create a new <Host> for each new customer, there is no other way,
so keep doing it.
Some data : each <Host> in server.xml has its own "appBase", which is the top directory in
which "webapps" (also named "context") for that Host are located.
By default, this is "webapps", which is a relative location, which by default points to :
(tomcat-installation-directory)/webapps/.
But you can create another directory somewhere, and point the "appBase" of another Host to
this new directory, and then this Host will look in that place for its own webapps.
Normally, any given application (or "webapp" or "context") is accessed by a URL of the
form : http://hostname[:port]/<webapp-name>/
where <webapp-name> is the name of a sub-directory just below the appBase directory for
that Host.
So
- if your application would be (imaginatively) named "myWebApp"
- and your Host name would be (imaginatively) named "customer1.customers.com"
- and the corresponding Host tage would be like
<Host name="customer1.customers.com" appBase="C:/websites/customer1/webapps/" ...>
then
- the place to put your application would be in "C:/websites/customer1/webapps/myWebApp/"
- and the customer would access it via a URL like :
http://customer1.customers.com/myWebApp/..."
Then, one more thing :
If you want your application to be the "default" webapp, which the user could call up with
a URL like : http://customer1.customers.com/
then you have to do the following :
- create a directory "C:/websites/customer1/webapps/ROOT/"
- and place your application there
(That name "ROOT" (in capitals, important) is interpreted by Tomcat in a special way, so
that if Tomcat does not recognise the name of the application requested in the URL, it
will default to looking there). (Kind of).
Of course, for all of this to work (and for the users to be able to get to that
webserver), the name "customer1.customers.com" would have to be registered in the DNS
system, with the IP address of your Tomcat server.
Hope this helps.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org