cops/.htaccess

34 lines
1004 B
ApacheConf
Raw Normal View History

2013-01-10 16:33:01 +02:00
<IfModule mod_xsendfile.c>
<Files fetch.php>
XSendFile on
</Files>
2013-01-10 16:33:01 +02:00
</IfModule>
###########################################
# 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
###########################################
# On WAMP one user had to add this line in his httpd.conf
# None of the abose was working
###########################################
#XSendFilePath <YourCalibrePath>
<IfModule mod_rewrite.c>
RewriteEngine on
2013-02-05 22:08:28 +02:00
RewriteRule ^download/(.*)/.*\.kepub\.epub$ fetch.php?data=$1&type=epub [L]
RewriteRule ^download/(.*)/.*\.(.*)$ fetch.php?data=$1&type=$2 [L]
</IfModule>
###########################################
2013-01-27 08:53:51 +02:00
# Uncomment if you wish to protect access with a password
###########################################
#AuthUserFile /path/to/file
#AuthGroupFile /dev/null
#AuthName "Acces securise"
#AuthType Basic
#Require valid-user