Skip to main content
Jamf Nation, hosted by Jamf, is a knowledgeable community of Apple-focused admins and Jamf users. Join us in person at the ninth annual Jamf Nation User Conference (JNUC) this November for three days of learning, laughter and IT love.

Hosting In-House Books and Apps on a Tomcat Instance

Overview

Before you distribute an in-house app or book, it is important to consider where it will be hosted. One of the hosting locations you can use is a web server. To use this location, the app or book must be hosted on a web server before you distribute it. If you do not have a web server on which to host your in-house content, you can use the Tomcat instance that hosts Jamf Pro.

Versions Affected

Jamf Pro v8.5 and later

Procedure

  1. Create a directory named "inhouse" in the Tomcat webapps ROOT directory.
    Note: The location of the Tomcat webapps ROOT directory varies depending on the platform and the way you installed Jamf Pro. Common locations for the Tomcat webapps directory are listed below.
    If you used the Jamf Pro Installer to install Jamf Pro, the directory is located at:

    • Mac: /Library/JSS/Tomcat/webapps/ROOT/
    • Linux: /var/local/JSS/Tomcat/webapps/ROOT/
    • Windows: C:\Program Files\JSS\Tomcat\webapps\ROOT\

    If you did not use the Jamf Pro Installer to install Jamf Pro, the directory is located at:

    • Mac: /Library/Tomcat/webapps/ROOT/
    • Linux: /var/lib/tomcat7/webapps/ROOT/
    • Windows: C:\Program Files\Apache Tomcat7\webapps\ROOT\
  2. Place the in-house book file (.ibooks, .epub, or .pdf) or in-house app file (.ipa) in the directory you created in step 1.

Additional Information

For information on distributing in-house books or apps using Jamf Pro, see the Jamf Pro Administrator's Guide.

The URL for an in-house book or app hosted on the Tomcat instance that hosts Jamf Pro is https://jss.instancename.com:8443/inhouse/filename

Like Comment
Order by:
SOLVED Posted: by Sean_Ginn

Is there a limit to how big this file can get?

Like
SOLVED Posted: by khurram

The URL is working fine for the browsers on pc or mac but the same URL is not working for iPad2

Like
SOLVED Posted: by khurram

It was because of the web filter turned-on for students group only. So we have added our ebooks web server url to white-list

Like
SOLVED Posted: by Bedfords

We have our Casper hosted, how does that work?

Like
SOLVED Posted: by anelson

I received an error from tomcat server

HTTP Status 404 - /inhouse/5thGradeRulesBook.ibooks

type Status report

message /inhouse/5thGradeRulesBook.ibooks

description The requested resource is not available.

Like
SOLVED Posted: by antonio.ong

Hi Anelson,

I am helping another client with exact same issue and i had just made the fix.

If you also happen to use a Mac as a server, then try changing the inhouse folder to be under:

/Library/JSS/Tomcat/webapps/ROOT/

It should now work.

Like
SOLVED Posted: by aaronkerrgfs

We are using this setup successfully to deploy in-house iOS apps. We've created the inhouse folder within Tomcat's webapps directory.

When we perform a Casper upgrade, we've found the installer blows away the inhouse directory and the files within it. Is there any way to prevent this so we don't have to manually restore the backup each time?

Like
SOLVED Posted: by luispalumbo

Hi @aaronkerrgfs,

I have just started sharing books and PDFs using this method, and what I did was creating a folder, e.g. inhouse, within my Casper Share folder, the same that holds all the packages, then I created a symbolic link on the /Library/JSS/Tomcat/webapps/ to my Casper Share folder using ln -s.

Like I said, I'm not sure if when I update my Casper it will delete Tomcat's folder or not, but if does, it will only delete the link, not the folder or files within.

Like
SOLVED Posted: by MANSOUR

@luispalumbo
can you tell me how did you did the share folder on the inhouse folder and how did you use the symbolic link

Like
SOLVED Posted: by luispalumbo

@MANSOUR You go to your Casper folder that holds the apps and configurations, I call mine CasperShare, and now I'm using a Linux server instead of a Mac server, so my folder sits on /var/local/CasperShare and my Tomcat configuration is at /usr/local/jss/tomcat
. Inside the CasperShare folder I created another one called inhouse and put all the PDF files I want to distribute in there.

On the Tomcat configuration I created a link for that folder. In my case I did

sudo ln -s /var/local/CasperShare /usr/local/jss/tomcat/webapps/

I hope it helps

Like