2013-01-10 16:33:01 +02:00
|
|
|
<IfModule mod_xsendfile.c>
|
2012-10-29 12:58:02 +02:00
|
|
|
<Files fetch.php>
|
|
|
|
XSendFile on
|
|
|
|
</Files>
|
2013-01-10 16:33:01 +02:00
|
|
|
</IfModule>
|
2012-10-29 12:58:02 +02:00
|
|
|
|
2012-12-10 07:14:33 +02:00
|
|
|
###########################################
|
|
|
|
# If the notation above don't work, you can try that one
|
|
|
|
# Disclaimer : I'm no apache expert it can be bad security wise :(
|
|
|
|
###########################################
|
|
|
|
#XSendFile On
|
|
|
|
#XSendFileAllowAbove on
|
|
|
|
|
2013-01-31 00:51:16 +02:00
|
|
|
###########################################
|
|
|
|
# On WAMP one user had to add this line in his httpd.conf
|
|
|
|
# None of the abose was working
|
|
|
|
###########################################
|
|
|
|
#XSendFilePath <YourCalibrePath>
|
|
|
|
|
2013-01-27 08:15:50 +02:00
|
|
|
<IfModule mod_rewrite.c>
|
2012-10-29 12:58:02 +02:00
|
|
|
RewriteEngine on
|
2013-04-05 09:14:44 +03:00
|
|
|
RewriteRule ^download/(\d*)/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&db=$2&type=epub [L]
|
|
|
|
RewriteRule ^download/(\d*)/(\d*)/.*\.(.*)$ fetch.php?data=$1&db=$2&type=$3 [L]
|
|
|
|
RewriteRule ^download/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&type=epub [L]
|
|
|
|
RewriteRule ^download/(\d*)/.*\.(.*)$ fetch.php?data=$1&type=$2 [L]
|
2013-01-27 08:15:50 +02:00
|
|
|
</IfModule>
|
2012-12-10 07:14:33 +02:00
|
|
|
|
|
|
|
###########################################
|
2013-01-27 08:53:51 +02:00
|
|
|
# Uncomment if you wish to protect access with a password
|
2012-12-10 07:14:33 +02:00
|
|
|
###########################################
|
|
|
|
#AuthUserFile /path/to/file
|
|
|
|
#AuthGroupFile /dev/null
|
|
|
|
#AuthName "Acces securise"
|
|
|
|
#AuthType Basic
|
|
|
|
#Require valid-user
|