Advertisement
Guest User

Moonlight.conf

a guest
Feb 27th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <VirtualHost *:80>
  2. Alias /moonlight /var/www/cakebox/public/
  3. <Directory /var/www/cakebox/public/>
  4. Options Indexes MultiViews FollowSymLinks
  5. AllowOverride All
  6.  
  7. <IfVersion >= 2.4>
  8. Require all granted
  9. </IfVersion>
  10. <IfVersion < 2.4>
  11. Order allow,deny
  12. Allow from all
  13. </IfVersion>
  14.  
  15. # use debug instead of production to get more log
  16. SetEnv APPLICATION_ENV production
  17.  
  18. RewriteEngine On
  19. RewriteBase /moonlight/
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteRule ^ index.php [QSA,L]
  22. </Directory>
  23.  
  24. # alias for download and streaming, it must point to your download directory
  25. # replace /home/wolf with the same path as cakebox.root variable in app/config/
  26. Alias /access /home/wolf
  27. <Directory "/home/wolf">
  28. Options -Indexes
  29.  
  30. <IfVersion >= 2.4>
  31. Require all granted
  32. </IfVersion>
  33. <IfVersion < 2.4>
  34. Order allow,deny
  35. Allow from all
  36. </IfVersion>
  37. Satisfy Any
  38.  
  39. Header set Content-Disposition "attachment"
  40. </Directory>
  41.  
  42. ErrorLog "/var/log/apache2/moonlight-error.log"
  43. CustomLog "/var/log/apache2/moonlight-access.log" common
  44. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement