Skip to content

Install Apache XSendFIle

YouPHPTube edited this page Nov 21, 2019 · 8 revisions

Install apache xsendfile

sudo apt-get install libapache2-mod-xsendfile && sudo a2enmod xsendfile

Configure your apache XSendFile

sudo nano /etc/apache2/apache2.conf

or in your virtual hosts

/etc/apache2/sites-available/youphptube.conf
/etc/apache2/sites-available/youphptube-le-ssl.conf

Edit the file and add this

<Directory /var/www/html/YouPHPTube/>
    Options Indexes FollowSymLinks
    XSendFile on
    XSendFilePath /var/www/html/YouPHPTube/
    AllowOverride All
    Require all granted
    Order Allow,Deny
    Allow from All
</Directory>
Clone this wiki locally