Overview
The xsendfile Apache module lets Apache handle file transfers directly instead of routing them through your web application, improving performance and keeping sensitive file paths hidden from users. You can enable it for your site from the 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.
How do I enable XSendFile?
To enable:
- Navigate to the Manage Websites page.
- Click the Manage button to open Website settings, which allows you to modify various configurations 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.