java - customize web application root context in apache -


I have a web application abc.war and I want to deploy it on Apache statement. The problem is, by default, the path to this application is , but I want to use it as .

I have the meta-INF file of the battle in the context.xml folder:

& lt; Reference path = & quot; / Xyz & quot; DocBase = & quot; ABC & quot; Override = & quot; True & quot; / & Gt;

The application war is located under ABCWAR % CATALINA_HOME% \ webapps and it is drawn in % CATALINA_HOME% \ webapps \ abc Folder.

Also, while deploying, file reference from abc / META-INF .xm % CATALINA_HOME% \ conf \ Catalina \ localhost , but only reference path = / ABC

In addition to this, I still see abc.war deployment while logging in the following line in Apache: Please anyone, please help, it does not work, or tells that Is there a way of deploying web applications on Pshaijh, such apps can be accessed from the optional route (which is not related to war-file name)?

Thanks in advance.

Take a look at this:

The reference path of this web application, which Matching with the beginning of every requ. URI to select the appropriate web application for processing. All reference paths within a particular host should be unique. If you specify the reference path for the empty string (""), then you are defining the default web application for this host, which will process all requests not specified in other contexts.

The value of this field must be not set when defines a context in server.xml , since it Estimated , either .xml reference file or Dockbase .


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -