I want everyone who requests www.somedomain.com/files/ to transparently access files served from another application/location.
Because the application I am using wants some indication as to who the user is, I cannot redirect and have the user id show-up in the address bar for obvious reasons.
This is a simple application that will take care of itself except that I do want to collect some information with the http request and keep that in a survey data log file hense the proxy.
So for every request to:
www.somedomain.com/files
www.somedomain.com/files/
www.somedomain.com/files/<anything>
I want to proxy to:
http://www.mydomain.tld/proxy/proxy.plx ... red&from='%{REMOTE_ADDR}'&agent='%{HTTP_USER_AGENT}'&referer='%{HTTP_REFERER}'
...where authorized-user-id will be manually edited into the .htaccess file and the rest as you would expect.
This seems to work fine on my Cobalt server... but not in the real world.
# file proxy
RewriteCond %{REQUEST_URI} ^/files$ [NC,OR]
RewriteCond %{REQUEST_URI} ^/files/$ [NC,OR]
RewriteCond %{REQUEST_URI} ^/files/.*$ [NC]
RewriteRule .* http://www.mydomain.tld/proxy/proxy.plx ... red&from='%{REMOTE_ADDR}'&agent='%{HTTP_USER_AGENT}'&referer='%{HTTP_REFERER}' [P,L]
The real world server tries to proxy but puts a / at the end of the line after the parameters thus confusing apache.
It would all work fine if I could just figure out why a slash is being put at the end of the URL.
Any ideas as to what I am doing wrong??
Thanks in advance!
Skeeter-