hari-p
5/3/2017 - 2:39 AM

Sharing static content (Images) in apache AngularJs to exclude this path

Sharing static content (Images) in apache AngularJs to exclude this path

Find server.xml and make the changes:

<Server port="8025" shutdown="SHUTDOWN">
 ...
  <Service name="Catalina">
    ...
    <Engine defaultHost="localhost" name="Catalina">
     ...
     <Host appBase="webapps"
      autoDeploy="false" name="localhost" unpackWARs="true"
      xmlNamespaceAware="false" xmlValidation="false">
      ...
      <!--MAGIC LINE GOES HERE-->
       <Context docBase="/var/local/scis/bowkerimages" path="/bowkerimages" />
      </Host>
    </Engine>
  </Service>
</Server>


If using Angular.js ..reading that static path might be tricky. You have to change rewrite file to ignore UI routing in Angularjs
/data/tomcat8/webapps/myscis/MySCIS-1.0-SNAPSHOT/WEB-INF