Enabling XSendFile on an Apache server

 

Overview

The following explains how to enable the xsendfile Apache module in your DreamHost panel.

Background

Apache mod_xsendfile is a web server module that lets Apache handle file transfers instead of passing them through a web application. It is configured by setting a special X-Sendfile HTTP header that tells Apache which files to serve.

This approach improves performance, reduces memory usage, and enhances scalability—especially for large files—while keeping sensitive file paths hidden from users.

Enabling XSendFile

To enable:

  1. Navigate to the Manage Websites page. 
  2. Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
    • If in Grid view, click the Manage button at the bottom of the website box.
    • If in List view, click the Manage button at the far right of your domain name.
  3. Click the Settings tab.
  4. To the right of Web Options, click the Modify button.
  5. To the right of Enable mod_xsendfile, click the toggle to enable or disable.
  6. Click the Save Changes button.

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?