How to create a virtual directory inside Apache Tomcat

How to create a virtual directory inside Apache Tomcat

To employ Apache Tomcat instead of IIS to play the preview of assets in eMAM, we need to make necessary changes in configurations in two locations as explained below.

1. Adding Virtual directory
  1. Open C:\Program Files\Empress Media\eMAM Ingest Manager\eMAMUploadManager\conf\server.xml with a text editor
  2. Add <Context docBase="[path]" reloadable="true" debug="0" path="[name of virtual directory]"/> inside inside <Host></Host> tag
eg: <Context docBase="\\10.0.8.12\emamfolders\" reloadable="true" debug="0" path="/emamfolders/"/>

  1. Save the file
 
2. Enabling CORS
 
  1. Open C:\Program Files\Empress Media\eMAM Ingest Manager\eMAMUploadManager\conf\ web.xml with a text editor
  2. Add the below code
<filter>
 <filter-name>CorsFilter</filter-name>
 <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
 <init-param>
 <param-name>cors.allowed.origins</param-name>
 <param-value>*</param-value>
 </init-param>
 </filter>
 <filter-mapping>
 <filter-name>CorsFilter</filter-name>
 <url-pattern>/*</url-pattern>
 </filter-mapping>
  1. Save the file
Use the newly created virtual directory for the Storage Configuration in the Superadmin console.

    • Related Articles

    • How to add IIS Virtual Directory?

      Please refer the attachment.
    • eMAM post-implementation configurations

      1. Adding relevant MIME types We need to add the relevant MIME types in the IIS for the support of certain file types. This is added at the Default Web Site level. For this, 1. Open IIS. 2. Expand the server. 3. Expand Sites. 4. Expand Default Web ...
    • Apache Tomcat version upgrade

      STOP the eMAMUploadManager service 2. Backup the eMAMUploadManager folder 3. Download the Apache Tomcat latest version from the below link and extract the downloaded zip https://archive.apache.org/dist/tomcat/tomcat-9/ 4. Once extracted, you will be ...
    • How to configure eTube connector?

      To configure eTube connector, follow the steps below: Step 1: Copy "eTube" folder in “C:\Program Files\Empress Media” Step 2: Make sure that CGI service is enabled in IIS. Please refer the below link : ...
    • How to convert an IIS SSL certificate for Apache?

      How to convert an IIS SSL certificate for Apache 1. We need to export the certificate as PFX with the private key. Please follow the below steps: Open Microsoft Management Console by putting the following command in RUN. "MMC.EXE" Click on File icon ...