Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

Using Apache HTTP Server to Enable HTTP Downloads on a Linux File Share Distribution Point

Overview

This article explains how to use Apache HTTP Server to enable HTTP downloads on a Linux file share distribution point.

For more information on Apache HTTP Server, go to:

http://httpd.apache.org

The procedure below has been tested on Ubuntu. It may vary depending on your specific Linux operating system.

Procedure

  1. Install Apache HTTP Server according to the instructions for your specific Linux operating system. On Ubuntu, execute the following command:
    sudo apt-get install apache2
  2. Create a symlink to the distribution point by executing a command similar to the following: If you are using Ubuntu v12.04 or earlier:
    sudo ln -s /path/to/CasperShare /var/www/CasperShare
    If you are using Ubuntu v14.02 or later:
    sudo ln -s /path/to/CasperShare /var/www/html/CasperShare
  3. Update the settings for the distribution point in Jamf Pro:

    If you are using 9.98 or later:
    a. Log in to Jamf Pro with a web browser.
    b. In the top-right corner of the page, click Settings.
    c. Click Server Infrastructure.
    d. Click File Share Distribution Points.
    e. Click Edit.
    f. Click the HTTP tab and select the Use HTTP downloads checkbox.
    g. Click Save.

    If you are using 9.0-9.97:
    a. Log in to Jamf Pro with a web browser.
    b. In the top-right corner of the page, click Settings.
    c. Click Computer Management. In the "Computer Management - Server Infrastructure" section, click File Share Distribution Points.
    d. Click Edit.
    e. Click the HTTP tab and select the Use HTTP downloads checkbox.
    f. Click Save.

    If you are using 8.x:
    a. Log in to Jamf Pro with a web browser.
    b. Click the Settings tab.
    c. Click the Servers link.
    d. Click the Edit Server link across from the distribution point.
    e. Click the HTTP tab and select the HTTP Downloads are enabled for this Distribution Point checkbox.
    f. Click Save.

Like Comment
Order by:
SOLVED Posted: by McLeod

For CentOS7

Run command the following commands:
1. yum install httpd
2. systemctl start httpd (After package install is completed)

Create symlink to CasperShare in the directory below:
/var/www/html

Like
SOLVED Posted: by krispayne

Make sure you have BOM's!

Open Casper Admin after enabling HTTP and it will create them for you if you don't have them.

Like
SOLVED Posted: by O'Sullivan

I've tried this and I'm getting the following error on my Ubuntu Server VM

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80

Its failing to bind to port 80 as I'm using that port in my BSDpy setup for Netboot

https://grahamgilbert.com/blog/2015/04/22/getting-started-with-bsdpy-on-docker/

I'm wondering can I change the port that BSDpy is using from 80 or the port apache2 is using to another port.

Like
SOLVED Posted: by dmueller

@O'Sullivan, I made some minor tweaks to the bsdpserver that allowed for using a different port number.
[https://bitbucket.org/dmmueller/bsdpy-api/diff/bsdpserver.py?diff2=da5bcb8d7480&at=api](link URL)

I made adjustments to Pepijn's API version of bsdpserver.py about a year ago, but the diffs may help you if you need to modify your dockerized web port.

Best regards,

-Dennis

Like
SOLVED Posted: by davechristensen

Important security considerations for the above: you'll want to disable directory browsing in Apache and create an .htpasswd/.htaccess for your read-only user, otherwise your web server is open for indexing to robots and anonymous downloads for all your software... no bueno. These details really ought to be covered in this article for anyone putting these DPs on public IPs or even internal subnets really.

Like
SOLVED Posted: by Eigger

@davechristensen can you be so kind as to share detailed instructions in creating .htpasswd/.htaccess? We are planning on implementing external facing http file share distribution point.

Like
SOLVED Posted: by cmudgeUWF

I've got multiple questions:

  1. Is this assuming you've installed JAMF Admin? What about the cases where someone is using Pro (cloud version)?
  2. Do you need Samba still for this?
Like
SOLVED Posted: by cwaldrip

A version of this document for the built-in Apache with macOS with information on enabling SSL certs would be helpful. I've found a half dozen guides on-line, and they all differ and none seem to work for me. I can get file sharing with Apache working just fine, but it's the SSL part that doesn't seem to work.

With the web server settings being removed from Server.app this is my only viable option for using our existing hardware as file distribution servers. I tried SMB shares, but first there are firewall considerations and second there are latency/timeout issues.

Like