<div dir="ltr">I'm bad at this, but my understanding is that those redirects are more for making sure people who try to use old URLs end up at the right place.<div><br></div><div>The settings described here:</div><div><a href="https://github.com/archivesspace/tech-docs/blob/master/provisioning/https.md#setting-up-ssl" target="_blank">https://github.com/archivesspace/tech-docs/blob/master/provisioning/https.md#setting-up-ssl</a><br></div><div>are doing most of the work, and AppConfig[:frontend_proxy_url] is used internally to make sure that AS generates correct links from the list view (search results, etc.) to a single record view.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 30, 2019 at 11:26 AM Kara Hart <<a href="mailto:kstrosch@wellesley.edu" target="_blank">kstrosch@wellesley.edu</a>> wrote:<br></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"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Cont. thoughts from last email...</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">In fact, it looks like my System staff didn't add the redirects to the apache config files. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">If I added these lines to that config, would that possibly fix the problem?  </div><div class="gmail_default"><pre style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;box-sizing:border-box;margin-bottom:16px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;background:transparent;border-radius:3px;margin:0px;padding:0px;border:0px;word-break:normal;display:inline;line-height:inherit;overflow:visible"><VirtualHost *:80>
ServerName <a href="http://archivesstaff.wellesley.edu" target="_blank">archivesstaff.wellesley.edu</a>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) <a href="https://archivesstaff.wellesley.edu" target="_blank">https://archivesstaff.wellesley.edu</a>$1 [R,L]
</VirtualHost>

<VirtualHost *:80>
ServerName <a href="http://archives.wellesley.edu" target="_blank">archives.wellesley.edu</a>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) <a href="https://archives.wellesley.edu" target="_blank">https://archives.wellesley.edu</a>$1 [R,L]
</VirtualHost></code></pre><div class="gmail_default"><br></div><div class="gmail_default">Thanks, Kara</div><div class="gmail_default"><br></div>~~~ Kara S. Hart <br><br>Systems Librarian - Library & Technology Services - Wellesley College</div><div><div dir="ltr" class="gmail-m_-2523662837314519782gmail-m_-1707938095780403943m_-2268517319677396832gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small"><br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 30, 2019 at 10:55 AM Kara Hart <<a href="mailto:kstrosch@wellesley.edu" target="_blank">kstrosch@wellesley.edu</a>> wrote:<br></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"><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></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">https://archivesstaff.wellesley.edu</a>"<br>AppConfig[:public_proxy_url] = "<a href="https://archives.wellesley.edu/" target="_blank">https://archives.wellesley.edu</a>"<br></div><div class="gmail_default"><br></div><div class="gmail_default">AppConfig[:frontend_proxy_url] = proc { "<a href="https://archivesstaff.wellesley.edu/" target="_blank">https://archivesstaff.wellesley.edu</a>" }<br>AppConfig[:public_proxy_url] = proc { "<a href="https://archives.wellesley.edu/" target="_blank">https://archives.wellesley.edu</a>" }<br></div><div class="gmail_default"><br></div><div class="gmail_default">AppConfig[:frontend_proxy_url] = proc { AppConfig[:<a href="https://archivesstaff.wellesley.edu/" target="_blank">https://archivesstaff.wellesley.edu</a>] }<br>AppConfig[:public_proxy_url] = proc { AppConfig[:<a href="https://archives.wellesley.edu/" target="_blank">https://archives.wellesley.edu</a>] }</div><div class="gmail_default"><br></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" target="_blank">http://localhost:8080</a>" by default.  <br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><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" target="_blank">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></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div><div dir="ltr" class="gmail-m_-2523662837314519782gmail-m_-1707938095780403943gmail-m_-2268517319677396832gmail-m_-6341043239842031822m_5024933190766084723gmail_signature"><div dir="ltr"><div><font size="2"><font style="font-family:arial"><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);display:inline"></div></font><span style="font-family:arial">~~~ </span><span style="font-family:arial">Kara S. Hart </span></font></div><div><div style="font-family:arial"><font size="2"><font>Systems Librarian - Library & Technology Services <div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);display:inline">- </div></font>Wellesley College</font></div></div></div></div></div><br></div><br><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">trthorn2@ncsu.edu</a>> wrote:<br></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">I think these are the settings in config.rb that make that work correctly (from the documentation):<div><font face="monospace">AppConfig[:frontend_proxy_url] = "<a href="https://staff.myarchive.org" target="_blank">https://staff.myarchive.org</a>"<br>AppConfig[:public_proxy_url] = "<a href="https://public.myarchive.org" target="_blank">https://public.myarchive.org</a>"</font></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">But we have something like this:</font></div><div><font face="monospace">AppConfig[:frontend_proxy_url] = proc { "</font><span style="font-family:monospace"><a href="https://staff.myarchive.org" target="_blank">https://staff.myarchive.org</a></span><font face="monospace">" }<br>AppConfig[:public_proxy_url] = proc { "</font><span style="font-family:monospace"><a href="https://public.myarchive.org" target="_blank">https://public.myarchive.org</a></span><font face="monospace">" }</font></div><div>with the URL wrapped in <font face="monospace">proc { }</font>. So try both and see if it helps. If the <font face="monospace">proc { }</font> thing works then the documentation might need to be updated.</div></div><br><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">kstrosch@wellesley.edu</a>> wrote:<br></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"><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;color:rgb(0,0,0);font-family:Arial;font-size:11pt;white-space:pre-wrap">openjdk 1.8.0_212; </span><span style="background-color:transparent;color:rgb(0,0,0);font-family:Arial;font-size:11pt;white-space:pre-wrap">Apache/2.4.6; </span><span style="background-color:transparent;color:rgb(0,0,0);font-family:Arial;font-size:11pt;white-space:pre-wrap">5.7.26 MySQL; </span><span style="background-color:transparent;color:rgb(0,0,0);font-family:Arial;font-size:11pt;white-space:pre-wrap">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">documentation</a>. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></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></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">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></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">https://archivesstaff.wellesley.edu/resources/51#tree::archival_object_15295</a><br></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">http://archivesstaff.wellesley.edu/resources/51/edit</a><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">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></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif">Any idea with is going on or of a setting I'm missing somewhere? </span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><p>Thanks, </p><p>Kara</p></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><div><div dir="ltr" class="gmail-m_-2523662837314519782gmail-m_-1707938095780403943gmail-m_-2268517319677396832gmail-m_-6341043239842031822gmail-m_5024933190766084723gmail-m_-4662644626006666264gmail-m_4855132080475018208m_2202132359012109997gmail_signature"><div dir="ltr"><div><font size="2"><font style="font-family:arial"><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);display:inline"></div></font><span style="font-family:arial">~~~ </span><span style="font-family:arial">Kara S. Hart </span></font></div><div><div style="font-family:arial"><font size="2"><font>Systems Librarian - Library & Technology Services <div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);display:inline">- </div></font>Wellesley College</font></div><div style="font-family:arial;font-size:small"><br></div></div></div></div></div></div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-2523662837314519782gmail-m_-1707938095780403943gmail-m_-2268517319677396832gmail-m_-6341043239842031822gmail-m_5024933190766084723gmail-m_-4662644626006666264gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Trevor Thornton</font><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Applications Developer, Digital Library Initiatives</font></div><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">North Carolina State University Libraries</font></div></div></div></div></div></div></div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-2523662837314519782gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Trevor Thornton</font><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">Applications Developer, Digital Library Initiatives</font></div><div><font size="2" style="background-color:rgb(255,255,255)" color="#666666">North Carolina State University Libraries</font></div></div></div></div></div></div></div>