Hi, It is really strange, most of the time tomcat seems to just ignore these context files I put. But if I change the alias path to a directory which doesn't exist and then make a change in another context file, tomcat tries to reload the second file and the first one and then complains about invalid directory in alias. I fix the directory path, again change the other context file to trigger a reload (not triggered by changing the one with the aliases attribute), tomcat reloads the second file and then just continues to ignore the aliases from the first file. I must be missing some other configuration somewhere.. does anyone know what is it?
Thanks, Michael 2012/5/17 Michael Ravits <michaelr...@gmail.com> > Hey Pidster, > > This is the tag I've used: > > <Context > aliases="/img/images=/home/michaelr/images,/img/thumbs=/home/michaelr/thumbs"></Context> > > It could have been a permissions problem but I gather that if docBase > works, this must work as well permission wise. > > Thanks, > Michael > > 2012/5/17, Pid <p...@pidster.com>: > > On 17/05/2012 06:41, Michael Ravits wrote: > >> Hi Everybody, > >> > >> I just can't get this to work. > >> Installed Tomcat 7.0.21 on ubuntu 11 using apt-get. > >> I deployed ROOT.war and then went on to configure aliases. > >> Tried adding the attribute in: > > > > Obvious question: what exactly did you try? > > > > > > p > > > >> $CATALINA_BASE/conf/Catalina/localhost/ROOT.xml > >> $CATALINA_BASE/conf/Catalina/localhost/context.xml > >> $CATALINA_BASE/conf/Catalina/localhost/context.xml.default > >> $CATALINA_BASE/conf//context.xml > >> > >> But nothing seems to work.. > >> > >> In the mean while I've resorted to adding: > >> > >> $CATALINA_BASE/conf/Catalina/localhost/img.xml > >> > >> With docBase attribute pointing at the right place and it works. > >> But it seems to me that aliases is more appropriate. > >> > >> Does anyone know what I'm doing wrong? > >> How should I debug this? > >> > >> Thanks, > >> Michael > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > > > > > > -- > > > > [key:62590808] > > > > >