PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

Serving static content outside of the WAR using Apache Tomcat

jeudi 23 avril 2015 à 12:03
@jeekajoo shaarlinks 23/04/2015
Ca consiste juste à ajouter un élément context dans un élement host, dans le server.xml.

"""
 <Host appBase="webapps"
          autoDeploy="false" name="localhost" unpackWARs="true"
          xmlNamespaceAware="false" xmlValidation="false">
   ...
   <Context docBase="/home/stuff" path="/static" />

 </Host>
"""
(Permalink)