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:
- Navigate to the Manage Websites page.
- Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
- Click the Settings tab.
- To the right of Web Options, click the Modify button.
- To the right of Enable mod_xsendfile, click the toggle to enable or disable.
- Click the Save Changes button.