[Archivesspace_Users_Group] proxy issue
mang.sun at rice.edu
Fri Jan 16 14:37:15 EST 2015
After not touching this issue for a while until yesterday, I re-picked
up this issue and spent some time combing through the code and now I
think the problem has been largely resolved. Actually, the directive
line of AppConfig[:frontend_proxy_url] = "https://ASurl" in config.rb
seemingly does not play the role as intended or I thought. Instead, it's
because the Apache Proxy does not out of box forward the protocol (here
https) that was used by browser to access AS (AS does not talk to APACHE
in secured mode?) to the AS application. In order to pick up and carry
this protocol info to AS, one new Apache directive line of '
RequestHeader set X-Forwarded-Proto "https" '
is added to the Apache secured virtual host configuration and brings
it into looking similar to the below.
RequestHeader set X-Forwarded-Proto "https"
ProxyPass / http://AShostname:8080/
ProxyPassReverse / http://AShostname:8080/
Corrections and comments are welcome.
On 11/20/2014 2:50 PM, Mang Sun wrote:
> Plus, the view buttons in the frontend interface also run into the
> same problem of https being stripped down to http.
> On 11/20/2014 2:11 PM, Mang Sun wrote:
>> I have set up Apache as the proxy server with http://ASurl pointing
>> to http://ASurl:8081 and https://ASurl pointing to http://ASurl:8080
>> and also set the the following two lines in config.rb
>> AppConfig[:frontend_proxy_url] = "https://ASurl"
>> AppConfig[:public_proxy_url] = "http://ASurl"
>> and seen proxy work roughly well except that the following url can't
>> be handled well.
>> The above link through the resolver will be redirected to
>> http://ASurl/resources/115/edit where https is replaced by http and
>> we see the message of "The page you were looking for doesn't exist".
>> The vesion of AS i am testing with is v.1.1.0.
>> Any idea again ?
>> Thank you
>> Mang Sun
>> Rice U.
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group at lyralists.lyrasis.org
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
More information about the Archivesspace_Users_Group