Created
November 10, 2017 01:45
-
-
Save jcrisp/d213e6681f0a68defc67c6d888c8c861 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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