Hi
I am using a python script to access a bunch of music files (edna),
this uses python's BaseHTTP stuff to serve pages.
As this script has very poort authentication/ACL support, I let it
only listen to localhost and then use apache-2.0.50 on the same
machine with ProxyPass/ProxyPassReverse to serve pages.
SO far this works great, the setup checks for IP and if you're not in
the list it asks for a password. Fine.
What I also wanted, is limiting access to certain files based on
useragent.
I know this worked in apache1, but somehow this does not work anymore
in apache2.
Here is my config:
<VirtualHost x.x.x.32:8888>
ServerName edna.blah.org
# only these useragents may connect
SetEnvIf User-Agent ^Winamp player
SetEnvIf User-Agent ^RMA player
SetEnvIf User-Agent ^QuickTime player
<FilesMatch "\.[mM][pP]3$">
<Limit GET>
Order Deny,Allow
Deny from env=!player
Allow from env=player
</Limit>
</FilesMatch>
# ip+passwd checks
<Location />
AuthName "Edna Streaming MP3 Archive"
AuthType Basic
AuthUserFile /etc/edna/edna.users
<Limit GET>
require valid-user
satisfy any
order deny,allow
deny from all
allow from x.x.x.x
</Limit>
</Location>
ProxyPass /
http://localhost:39999/
ProxyPassReverse /
http://localhost:39999/
</VirtualHost>
Infact, it does not matter what I put in the FilesMatch block, the
content is completely ignored.
If I put it inside a vhosts that does not use
ProxyPass/ProxyPassReverse, it does work...
So I am wondering if there is an issue with the combination of
FilesMatch en ProxyPass? I've searched for hours but no go...
Thanks,
--
* *** Dick Visser TIENHUIS Networking
** * * Marco Polostraat 234-3 P: +31206843731
* * *** 1056 DP Amsterdam F: +31208641420
* * * * The Netherlands M: +31622698108
* ** * WWW:
http://www.tienhuis.nl
* * * Email: d.n.m.visser.DeleteThis@tienhuis.nl
* * * IP Phone: sip:dick@tienhuis.nl
*** *** PGP-key:
http://www.tienhuis.nl/gpg.txt
Live IPv6 webcam:
http://www.terena.nl/~dick/cam2.asx