Closed (fixed)
Project:
Stage File Proxy
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2012 at 20:08 UTC
Updated:
1 Feb 2013 at 16:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
iaminawe commentedWas just about to request that same thing . +1 please
Comment #2
derEremit commentedCreated small patch against current head
which currently is the same as 1.0 so it can be applied on top of that.
Please review...
Comment #3
slashrsm commentedLooks nice. Thank you for this patch.
Looking forward to have this commited.
Comment #4
aschiwi commentedThis works without a patch:
$conf['stage_file_proxy_origin'] = 'http://user:password@example.com'; // no trailing slash
See also http://www.undpaul.de/blog/2011/12/21/stage-file-proxy-no-more-big-file-...
Please reopen this issue if that doesn't help you.
Comment #5
derEremit commentedcould someone help verify that #4 actually does not work.
I tested on my ubuntu 12.04 setup multiple times and it does NOT work without my patch.
Comment #6
gregglesMy sense is that #4 should work on most servers. When you say you tested it on "12.04" do you mean Apache was doing Basic Auth or that 12.04 was the "client" making requests to some other server?
Comment #7
derEremit commentedwell, our devs all work on ubuntu 12.04 either directly or the mac guys with a 12.04 vm
server has basic authentication
for my patch i first added a watchdog entry to see if auth works, and with method in #4 it gives me return code 401.
tested multiple times on different machines, but everytime ubuntu 12.04 as clients.
Comment #8
gregglesThat's convincing enough for me :) Thanks for the details derEremit.
Comment #9
jamsilver commented#4 worked just fine for me on Ubuntu 11.04 and Ubuntu 12.10.
No need for a patch as far as I can see =)
Comment #10
gregglesWe could document it.
Comment #11
jamsilver commentedIt's worth saying that special characters need urlencoding with this syntax, so if your username/password is:
username: myusername
password: letme&in
then your uri would be:
$conf['stage_file_proxy_origin'] = 'http://myusername:letme%26in@example.com';
Comment #12
gregglesNice, great tip!
Comment #13
jamsilver commentedsmall bracket-positioning typo here I think, probably was intended to be:
Comment #14
gregglesCool cool cool. I fixed that and changed the spacing around a little. The attached patch is committed.
http://drupalcode.org/project/stage_file_proxy.git/commit/e913b19
Thanks, jamsilver!
Comment #15
jamsilver commentedAwesome =)!