Skip to content

Instantly share code, notes, and snippets.

@jcrisp
Created November 10, 2017 01:45
Show Gist options
  • Save jcrisp/d213e6681f0a68defc67c6d888c8c861 to your computer and use it in GitHub Desktop.
Save jcrisp/d213e6681f0a68defc67c6d888c8c861 to your computer and use it in GitHub Desktop.
sudo apt-get install libapache2-mod-xsendfile
sudo a2enmod xsendfile
# Add to virtual host
sudo vi /etc/apache2/sites-available/mysite.conf
XSendFile On
XSendFilePath /var/www/myapp/shared/pdfs
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment