Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- DocumentRoot /var/www/html/public
- <Directory "/var/www/html">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- </Directory>
- XSendFile On
- XSendFilePath /var/www/html/public
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- header("X-Sendfile: $file->path");
- header("Content-Type: application/octet-stream");
- header("Content-Disposition: attachment; filename="$file->name"");
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement