Discussion:
EZ Proxy not playing nicely with .htaccess
Martin, Will
2011-03-22 21:43:09 UTC
Permalink
All,

I've been handed a PDF file containing a reference book. We're supposed to host it ourselves, but limit use to our own university. I've stuck it in a folder on our server and restricted access based on IP range using a .htaccess file:

<limit GET>
order deny,allow
deny from all

allow from 134.129.182.74 # EZ Proxy

allow from 134.128. # first chunk of our main IP addresses

# As far as I can tell, there's no easy way to express
# an IP range like 134.129.1.1-134.129.223.254. So
# I'm manually allowing each third-quad subset.
allow from 134.129.1
allow from 134.129.2
allow from 134.129.3
(snip)
allow from 134.129.223
</limit>

It works fine for our on campus users, but when I try to access it through EZ Proxy, it takes me to a page saying "To access this document, wait a moment or click here to continue". Clicking the "here" link refreshes the page, but otherwise has no effect.

Also, the proxy URL is different than any other I've run across before. Login goes normally, but then it sends me to an URL like this one:

http://ezproxy.library.und.edu/connect?session=sp0RiEL7kwkhXicG&url=http://library.und.edu/digital/restricted/2010FB_complete.pdf

What's this "connect" option? Weird. The EZ Proxy stanza I've got is:

Title Chester Fritz Library
URL http://library.und.edu/
Domain www.library.und.edu
Domain library.und.edu

I've got a test.html file in the same folder, and it works fine.

Suggestions?

Thanks.

Will Martin

Web Services Librarian
Chester Fritz Library
University of North Dakota

---
You are currently subscribed to ezproxy as: gee-***@m.gmane.org.
T
Duane Denham
2011-03-23 13:36:01 UTC
Permalink
Will,

Why not use the Ezproxy limited folder? The description of the way it functions appears to be what you are trying to accomplish with .httaccess.

Duane Denham
Specialist
Edmon Low Library
Oklahoma State University
---
You are currently subscribed to ezproxy as: gee-***@m.gmane.org.
To unsubscribe, send request to ***@itec.suny.edu
Martin, Will
2011-03-23 15:01:37 UTC
Permalink
All,

Thanks for the off-list replies suggesting the EZ Proxy "limited" folder, which I hadn't been aware of before. It seems to do the trick.

Oh, and the weird "Wait or click here" error message was caused by the Foxit PDF Reader plugin. When both Foxit and the regular Adobe Reader are installed, Firefox won't load PDF documents in-browser. I'm not sure how that interaction led EZ Proxy to spit out the error message, but the problem went away when I renamed the file " npFoxitReaderPlugin.dll" in C:\Program Files\Mozilla\plugins to " npFoxitReaderPlugin.dll.disabled" and restarted Firefox. So, client-side configuration issue.

Thanks!

Will Martin

Web Services Librarian
Chester Fritz Library
University of North Dakota


---
You are currently subscribed to ezproxy as: gee-***@m.gmane.org.
To unsubscribe, send request

Loading...