Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

[apache2} ProxyPass/ProxyPassReverse + FilesMatch problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  name based virtual host issue  
Author Message
dick

External


Since: Sep 04, 2004
Posts: 2



(Msg. 1) Posted: Sat Sep 04, 2004 8:09 am
Post subject: [apache2} ProxyPass/ProxyPassReverse + FilesMatch problem
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: [apache2} ProxyPass/ProxyPassReverse + FilesMatch problem 
Back to top
Login to vote
dick

External


Since: Sep 04, 2004
Posts: 2



(Msg. 2) Posted: Sun Oct 03, 2004 7:50 am
Post subject: Re: [apache2} ProxyPass/ProxyPassReverse + FilesMatch problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

dick.TakeThisOut@tienhuis.nl (Dick Visser) wrote in message news:<4987864.0409040409.47e3177c.TakeThisOut@posting.google.com>...

I found out that instead of FilesMatch and Location, I had to use
Proxy and ProxyMatch:

<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
<ProxyMatch /*mp3>
<Limit GET>
Order Deny,Allow
Deny from env=!player
Allow from env=player
</Limit>
</ProxyMatch>

# ip+passwd checks
<Proxy />
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>
</Proxy>

 >> Stay informed about: [apache2} ProxyPass/ProxyPassReverse + FilesMatch problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
problem with Rewrite, proxypass and 'allow from' directives. - Hi all, I'm having a problem with configuration of two web servers. It is a lttle confusing but I shall try and explain... two web servers ... www.domain.name www2.domain.name The two servers are on the same network. Most of the user...

Urgent Problem: proxypass in Apache 1.3.27 - Hi all, I have a problem with a reverse proxy to an application backend that causes the application not the work behind the proxy (it does work when not using the proxy). Does anyone have a solution? Did read a lot of tips, without succes. CONFIGURATIO...

Regex for <Files> and <FilesMatch> - I'd like to password-protect all documents in the site except one (the "comming soon" page). I believe in Perl it'd be like this (I haven't tested though): !~/^index\.html/ However, I can't find info on the specific syntax that Apache expects...

forcetype + filesmatch in htaccess - I have write a script based on a htaccess file: Here it is: <FilesMatch "directory"> <font color=purple> ; ForceType application/x-httpd-php</font> </FilesMatch> But the server don't care about it. An idea?

apache2.0.48 and php 4.3.4 problem. - Having some issues installing php after i've installed apache. The problem is make install fails due to error initializing something in apxs. Apache installs fine. linux 2.4.xx gcc 3.3.3 apache 2.0.48 ( built with ./configure --enable-dav --with-ssl..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]