<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 30, 2019, at 10:55 AM, Kara Hart <<a href="mailto:kstrosch@wellesley.edu" class="">kstrosch@wellesley.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I've tried these three different settings. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br class=""></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div class="gmail_default">AppConfig[:frontend_proxy_url] = "<a href="https://archivesstaff.wellesley.edu/" target="_blank" class="">https://archivesstaff.wellesley.edu</a>"<br class="">AppConfig[:public_proxy_url] = "<a href="https://archives.wellesley.edu/" target="_blank" class="">https://archives.wellesley.edu</a>"<br class=""></div><div class="gmail_default"><br class=""></div><div class="gmail_default">AppConfig[:frontend_proxy_url] = proc { "<a href="https://archivesstaff.wellesley.edu/" target="_blank" class="">https://archivesstaff.wellesley.edu</a>" }<br class="">AppConfig[:public_proxy_url] = proc { "<a href="https://archives.wellesley.edu/" target="_blank" class="">https://archives.wellesley.edu</a>" }<br class=""></div><div class="gmail_default"><br class=""></div><div class="gmail_default">AppConfig[:frontend_proxy_url] = proc { AppConfig[:<a href="https://archivesstaff.wellesley.edu/" target="_blank" class="">https://archivesstaff.wellesley.edu</a>] }<br class="">AppConfig[:public_proxy_url] = proc { AppConfig[:<a href="https://archives.wellesley.edu/" target="_blank" class="">https://archives.wellesley.edu</a>] }</div><div class="gmail_default"><br class=""></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">The last broke AS launching, which makes sense. I think the default is to use AppConfig[:frontend_url]</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">which is AppConfig[:frontend_url] = "<a href="http://localhost:8080/" class="">http://localhost:8080</a>" by default. <br class=""></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br class=""></div></div></div></blockquote><div><br class=""></div><div>The “:” indicates a symbol in Ruby, which is a special kind of string constant</div><div><a href="https://reactive.io/tips/2009/01/11/the-difference-between-ruby-symbols-and-strings" class="">https://reactive.io/tips/2009/01/11/the-difference-between-ruby-symbols-and-strings</a></div><div><br class=""></div><div>And 'A<span style="font-family: arial, helvetica, sans-serif; font-size: small;" class="">ppConfig[:</span><a href="https://archivesstaff.wellesley.edu/" target="_blank" class="" style="font-family: arial, helvetica, sans-serif;">https://archivesstaff.wellesley.edu</a><span style="font-family: arial, helvetica, sans-serif; font-size: small;" class="">]</span><font face="arial, helvetica, sans-serif" size="2" class=""> ‘ is bad Ruby syntax unless quoted like '</font><span style="font-family: arial, helvetica, sans-serif; font-size: small;" class="">AppConfig[:"</span><font face="arial, helvetica, sans-serif" class=""><a href="https://archivesstaff.wellesley.edu" class="">https://archivesstaff.wellesley.edu</a></font>”<span style="font-family: arial, helvetica, sans-serif; font-size: small;" class="">]</span><span style="font-family: arial, helvetica, sans-serif; font-size: small;" class=""> </span></div><div><font face="arial, helvetica, sans-serif" size="2" class="">But it likely not something you want anyway unless you have assigned something to that value previously. </font></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I wonder if that is it. Because before we made this change the link to the staff interface from the public interface was <a href="http://localhost:8080/" class="">http://localhost:8080</a> and never rendered. I wonder if there's another apache setting I need for localhost?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br class=""></div></div></div></blockquote><div><br class=""></div>You don’t really want localhost for any of the proxy URLs. </div><div>Localhost is fine for the URLs that are used internally, for example for the frontend or PUI to communicate with the backend. </div><div>Unless you have set things up for multiple frontends on different hosts to talk to a single backend host, all of the services are</div><div>Running on the same host, and it’s the localhost. But “localhost” doesn’t export. If you send a localhost link to the browser,</div><div>It means, in the context of the browser, the same host the browser is running on, not the host the other service is on. </div><div>So the code that adds the PUI link from the staff web app doesn’t add it if the proxy URL points to “localhost". </div><div><div><br class=""></div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br class=""></div><div class=""><div dir="ltr" class="m_5024933190766084723gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><font size="2" class=""><font style="font-family:arial" class=""><div style="font-family: arial, helvetica, sans-serif; display: inline;" class=""></div></font><span style="font-family:arial" class="">~~~ </span><span style="font-family:arial" class="">Kara S. Hart </span></font></div><div class=""><div style="font-family:arial" class=""><font size="2" class=""><font class="">Systems Librarian - Library & Technology Services <div style="font-family: arial, helvetica, sans-serif; display: inline;" class="">- </div></font>Wellesley College</font></div></div></div></div></div><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 30, 2019 at 9:04 AM Trevor Thornton <<a href="mailto:trthorn2@ncsu.edu" target="_blank" class="">trthorn2@ncsu.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">I think these are the settings in config.rb that make that work correctly (from the documentation):<div class=""><font face="monospace" class="">AppConfig[:frontend_proxy_url] = "<a href="https://staff.myarchive.org/" target="_blank" class="">https://staff.myarchive.org</a>"<br class="">AppConfig[:public_proxy_url] = "<a href="https://public.myarchive.org/" target="_blank" class="">https://public.myarchive.org</a>"</font></div><div class=""><font face="monospace" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">But we have something like this:</font></div><div class=""><font face="monospace" class="">AppConfig[:frontend_proxy_url] = proc { "</font><span style="font-family:monospace" class=""><a href="https://staff.myarchive.org/" target="_blank" class="">https://staff.myarchive.org</a></span><font face="monospace" class="">" }<br class="">AppConfig[:public_proxy_url] = proc { "</font><span style="font-family:monospace" class=""><a href="https://public.myarchive.org/" target="_blank" class="">https://public.myarchive.org</a></span><font face="monospace" class="">" }</font></div><div class="">with the URL wrapped in <font face="monospace" class="">proc { }</font>. So try both and see if it helps. If the <font face="monospace" class="">proc { }</font> thing works then the documentation might need to be updated.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 30, 2019 at 8:47 AM Kara Hart <<a href="mailto:kstrosch@wellesley.edu" target="_blank" class="">kstrosch@wellesley.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class="gmail_default"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi everyone, </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">We just built a new server with <span style="background-color: transparent; font-family: Arial; font-size: 11pt; white-space: pre-wrap;" class="">openjdk 1.8.0_212; </span><span style="background-color: transparent; font-family: Arial; font-size: 11pt; white-space: pre-wrap;" class="">Apache/2.4.6; </span><span style="background-color: transparent; font-family: Arial; font-size: 11pt; white-space: pre-wrap;" class="">5.7.26 MySQL; </span><span style="background-color: transparent; font-family: Arial; font-size: 11pt; white-space: pre-wrap;" class="">CentOS Linux release 7.6.1810.</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I migrated the database from a 2.5.1 version and forced a full re-index by deleting the data directory contents. At the same time we installed certificates to start to serve the PUI and Staff UI over https. My Systems staff added the settings to the apache config file and I edited the config.rb file and entered the lines as suggested in the https setup <a href="https://github.com/archivesspace/tech-docs/blob/master/provisioning/https.md" target="_blank" class="">documentation</a>. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br class=""></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I'm having a problem with the AS not keeping https on the staff side when you click to view or edit records. I can search and get a list of result records in the AS staff UI and navigate around, but when I click on a record to edit or view I'm getting a requested resource is not found on server error. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br class=""></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">EX: a link to a record </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><a href="https://archivesstaff.wellesley.edu/resolve/edit?uri=/repositories/2/resources/51" target="_blank" class="">https://archivesstaff.wellesley.edu/resolve/edit?uri=/repositories/2/resources/51</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">should redirect to <br class=""></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><a href="https://archivesstaff.wellesley.edu/resources/51#tree::archival_object_15295" target="_blank" class="">https://archivesstaff.wellesley.edu/resources/51#tree::archival_object_15295</a><br class=""></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">but instead I get routed to insecure </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><a href="http://archivesstaff.wellesley.edu/resources/51/edit" target="_blank" class="">http://archivesstaff.wellesley.edu/resources/51/edit</a><br class=""></div><div class="gmail_default"><font face="arial, helvetica, sans-serif" class="">with error </font>"Not Found The requested URL /resources/51 was not found on this server."</div><div class="gmail_default">If I change the last url to https, manually, it does render the edit page. </div><div class="gmail_default"><br class=""></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif" class="">Any idea with is going on or of a setting I'm missing somewhere? </span><br class=""></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><p class="">Thanks, </p><p class="">Kara</p></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br class=""></div></div><div class=""><div dir="ltr" class="gmail-m_5024933190766084723gmail-m_-4662644626006666264gmail-m_4855132080475018208m_2202132359012109997gmail_signature"><div dir="ltr" class=""><div class=""><font size="2" class=""><font style="font-family:arial" class=""><div style="font-family: arial, helvetica, sans-serif; display: inline;" class=""></div></font><span style="font-family:arial" class="">~~~ </span><span style="font-family:arial" class="">Kara S. Hart </span></font></div><div class=""><div style="font-family:arial" class=""><font size="2" class=""><font class="">Systems Librarian - Library & Technology Services <div style="font-family: arial, helvetica, sans-serif; display: inline;" class="">- </div></font>Wellesley College</font></div><div style="font-family:arial;font-size:small" class=""><br class=""></div></div></div></div></div></div>
_______________________________________________<br class="">
Archivesspace_Users_Group mailing list<br class="">
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail-m_5024933190766084723gmail-m_-4662644626006666264gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><font size="2" style="background-color:rgb(255,255,255)" color="#666666" class="">Trevor Thornton</font><div class=""><font size="2" style="background-color:rgb(255,255,255)" color="#666666" class="">Applications Developer, Digital Library Initiatives</font></div><div class=""><font size="2" style="background-color:rgb(255,255,255)" color="#666666" class="">North Carolina State University Libraries</font></div></div></div></div></div></div></div>
_______________________________________________<br class="">
Archivesspace_Users_Group mailing list<br class="">
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br class="">
</blockquote></div>
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""></div></blockquote></div><br class=""></body></html>