[Archivesspace_Users_Group] proxy issue

Mang Sun mang.sun at rice.edu
Fri Jan 16 15:54:33 EST 2015


Brian, I did. But it's the directive line which  I added and highlighted 
but not found in the README_HTTPS largely fixed the issue.
Maybe i missed some info in the README.

Mang

On 1/16/2015 2:41 PM, Brian Hoffman wrote:
> Hi Mang Sun,
>
> Have you looked at the guide for configuring HTTPS?
>
> https://github.com/archivesspace/archivesspace/blob/master/README_HTTPS.md
>
> Brian
>
>
> On Fri, Jan 16, 2015 at 2:37 PM, Mang Sun <mang.sun at rice.edu 
> <mailto:mang.sun at rice.edu>> wrote:
>
>     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.
>     ###
>     <VirtualHost *:443>
>     RequestHeader set X-Forwarded-Proto "https"
>     ProxyPreserveHost On
>     ....
>     ProxyPass / http://AShostname:8080/
>     ProxyPassReverse / http://AShostname:8080/
>     ServerName AShostname
>     </VirtualHost >
>     ####
>
>     Corrections and comments are welcome.
>
>     Mang Sun
>     Rice U.
>
>
>     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.
>
>         -Mang
>         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.
>             https://ASurl/resolve/edit?uri=/repositories/2/resources/115&autoselect_repo=true
>
>
>             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
>             <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
>             http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
>         _______________________________________________
>         Archivesspace_Users_Group mailing list
>         Archivesspace_Users_Group at lyralists.lyrasis.org
>         <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
>         http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
>     _______________________________________________
>     Archivesspace_Users_Group mailing list
>     Archivesspace_Users_Group at lyralists.lyrasis.org
>     <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
>     http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
>
>
> -- 
> Brian Hoffman
> brianjhoffman at gmail.com <mailto:brianjhoffman at gmail.com>
>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150116/1e66e2a1/attachment.html>


More information about the Archivesspace_Users_Group mailing list