Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- Alias /moonlight /var/www/cakebox/public/
- <Directory /var/www/cakebox/public/>
- Options Indexes MultiViews FollowSymLinks
- AllowOverride All
- <IfVersion >= 2.4>
- Require all granted
- </IfVersion>
- <IfVersion < 2.4>
- Order allow,deny
- Allow from all
- </IfVersion>
- # use debug instead of production to get more log
- SetEnv APPLICATION_ENV production
- RewriteEngine On
- RewriteBase /moonlight/
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [QSA,L]
- </Directory>
- # alias for download and streaming, it must point to your download directory
- # replace /home/wolf with the same path as cakebox.root variable in app/config/
- Alias /access /home/wolf
- <Directory "/home/wolf">
- Options -Indexes
- <IfVersion >= 2.4>
- Require all granted
- </IfVersion>
- <IfVersion < 2.4>
- Order allow,deny
- Allow from all
- </IfVersion>
- Satisfy Any
- Header set Content-Disposition "attachment"
- </Directory>
- ErrorLog "/var/log/apache2/moonlight-error.log"
- CustomLog "/var/log/apache2/moonlight-access.log" common
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement