M
M
Mark Ivanych2017-11-30 15:03:10
ubuntu
Mark Ivanych, 2017-11-30 15:03:10

Jetty 9 how to properly store media files?

Hello,
Installed from Jetty 9 repository. According to this dock www.eclipse.org/jetty/documentation/9.3.x/configur... added site1.xml to /usr/share/jetty9/webapps folder

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/</Set>
  <Set name="war">/home/user/sites/site1/ROOT.war</Set>
  <Set name="virtualHosts">
    <Array type="java.lang.String">
      <Item>site1.com</Item>
    </Array>
  </Set>
</Configure>

Previously, with Tomcat, all site files that users download were stored corny next to the deployed project in the ./media folder. How to do the same in Jetty? The created folder /home/user/sites/site1/media is not visible to the server, and if you create it in /usr/share/jetty9/webapps, it will be visible to all hosts. Nginx is not supposed to be installed yet.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question