<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">From my experience, I have to disagree with Brian.  Leave out the _prefix settings. </div><div class="">They are set by a proc in config-defaults based on the value of AppConfig[:{frontend,public}_url] </div><div class=""><br class=""></div><div class=""><a href="https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L55" class="">https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L55</a></div><div class=""><br class=""></div><div class="">So if frontend_url is set properly, frontend_prefix should get set properly from that proc. </div><div class="">It should not be the whole URL, but just the path, so in your case, if you do want to set it </div><div class="">manually, it should be: “/archivesspace/frontend/“  </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I’ve been trying several configurations that mostly (90+% ) work, and I think I’ve finally</div><div class="">found the one that works 100% for me.  (Still testing.)  There are a bunch of issues. </div><div class="">I’ll follow up with a longer post ASAP. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">— Steve Majewski</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 23, 2015, at 4:57 PM, David Hietpas <<a href="mailto:hietpasd@uwosh.edu" class="">hietpasd@uwosh.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Well it got a little better, woohoo!  The links now appear to be properly structured but all the asset URL's are messed up... hmm.  I've attached a screenshots.  One of the screenshots shows the  APP_PATH too.  So how would I get the assets to load correctly?<br class=""></div><div class=""><br class=""></div><div class="">config.rb<br class="">   AppConfig[:frontend_url] = "<a href="http://localhost:8090/archivesspace/frontend" class="">http://localhost:8090/archivesspace/frontend</a>"<br class="">   AppConfig[:frontend_prefix] = proc {"<a href="http://#{AppConfig[:hostname]}/archivesspace/frontend" class="">http://#{AppConfig[:hostname]}/archivesspace/frontend</a>"}<br class="">  <br class=""></div>Apache:<br class="">    ProxyPass /archivesspace/frontend <a href="http://localhost:8090/archivesspace/frontend" class="">http://localhost:8090/archivesspace/frontend</a><br class="">    ProxyPassReverse /archivesspace/frontend <a href="http://localhost:8090/archivesspace/frontend" class="">http://localhost:8090/archivesspace/frontend</a><br class=""><br class=""></div>Thanks for the help!<br class=""><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Jul 23, 2015 at 3:12 PM, Brian Hoffman <span dir="ltr" class=""><<a href="mailto:brianjhoffman@gmail.com" target="_blank" class="">brianjhoffman@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">I think you still need to fill out the _prefix params. Also, you should probably use ProxyPass and ProxyPassReverse rather than mod_rewrite: <a href="http://httpd.apache.org/docs/2.4/rewrite/avoid.html" target="_blank" class="">http://httpd.apache.org/docs/2.4/rewrite/avoid.html</a><div class=""><br class=""></div><div class="">If you open up a Javascript console in the frontend application, and type APP_PATH, you should see “/frontend/“</div><div class=""><br class=""></div><div class="">Brian</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><span class=""><div class="">On Jul 23, 2015, at 8:39 AM, David Hietpas <<a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a>> wrote:</div><br class=""></span><blockquote type="cite" class=""><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span class=""><div dir="ltr" class="">Also I should note, all the hrefs and forms are not picking up the prefix either.<br class=""></div></span><div class="gmail_extra"><br class=""><div class="gmail_quote"><span class="">On Wed, Jul 22, 2015 at 1:27 PM, David Hietpas<span class=""> </span><span dir="ltr" class=""><<a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a>></span><span class=""> </span>wrote:<br class=""></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class=""><span class=""><div class=""><div class="">Thanks Chris.  I saw the version number and assumed it would work from 1.0.2 and up.<br class=""><br class=""></div>I tried what you suggested yesterday without success.  I've attached a screenshot with what is happening with my config information with the setup you suggested.<br class=""><br class=""></div>config.rb:<br class=""></span>AppConfig[:backend_url] = "<a href="http://localhost:8092/" target="_blank" class="">http://localhost:8092</a>"<br class="">AppConfig[:frontend_url] = "<a href="http://localhost:8090/" target="_blank" class="">http://localhost:8090</a>"<br class="">AppConfig[:solr_url] = "<a href="http://localhost:8093/" target="_blank" class="">http://localhost:8093</a>"<br class="">AppConfig[:public_url] = "<a href="http://localhost:8091/" target="_blank" class="">http://localhost:8091</a>"<div class=""><div class="h5"><br class=""><br class="">AppConfig[:frontend_proxy_url] = "<a href="http://localhost/archivesspace/frontend" target="_blank" class="">http://localhost/archivesspace/frontend</a>"<br class="">AppConfig[:public_proxy_url] = "<a href="http://localhost/archivesspace/public" target="_blank" class="">http://localhost/archivesspace/public</a>"<br class=""><br class=""><div class=""><br class="">Apache:<br class="">   <span class=""> </span>RewriteRule ^/archivesspace/frontend$<span class=""> </span><a href="http://localhost:8090/" target="_blank" class="">http://localhost:8090/</a><span class=""> </span>[L,P]<br class="">   <span class=""> </span>RewriteRule ^/archivesspace/frontend/(.*)$<span class=""> </span><a href="http://localhost:8090/$1" target="_blank" class="">http://localhost:8090/$1</a><span class=""> </span>[L,P]<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><div class=""><br class=""></div></div></div></div></div><div class=""><div class="h5"><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jul 22, 2015 at 12:06 PM, Chris Fitzpatrick<span class=""> </span><span dir="ltr" class=""><<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank" class="">Chris.Fitzpatrick@lyrasis.org</a>></span><span class=""> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class=""><div style="font-size:12pt;background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif" class=""><p class=""><br class=""></p><p class=""><br class=""></p><p class="">Hi David,</p><p class=""><br class=""></p><p class="">Wow, this documentation is extremely outdated ( from v1.0.2 ). </p><p class=""><br class=""></p><p class="">I'll update this. </p><p class=""><br class=""></p><p class="">But the new way for adding this is to use the proxy_url settings in the config.rb file: </p><p class=""><a title="Cmd+Click or tap to follow the link" href="https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L156-L157" target="_blank" class="">https://github.com/archivesspace/archivesspace/blob/master/common/config/config-defaults.rb#L156-L157</a></p><p class=""><br class=""></p><p class="">Change your url that you're proxying here, like </p><p class="">AppConfig[:<span class="">public_proxy_url] = "<a href="http://my.aspace.edu/public" target="_blank" class="">http://my.aspace.edu/public</a>"</span></p><p class="">AppConfig[:<span class="">frontend_proxy_url</span><span class="">] = "<a href="http://my.aspace.edu/staff" target="_blank" class="">http://my.aspace.edu/staff</a>"</span></p><div class=""><span class=""></span><br class=""></div><p class=""><br class=""></p><p class=""><br class=""></p><p class="">Does that make sense? No need to compile from source for this...</p><p class="">b,chris.<span class=""> </span><br class=""></p><p class=""><br class=""></p><div class=""><div name="divtagdefaultwrapper" class=""><font size="2" class="">Chris Fitzpatrick | Developer, ArchivesSpace<br class="">Skype: chrisfitzpat  | Phone: 918.236.6048<br class=""><a href="http://archivesspace.org/" target="_blank" class="">http://archivesspace.org/</a><br class=""></font></div></div><br class=""><br class=""><div class=""><hr style="display:inline-block;width:536px" class=""><div dir="ltr" class=""><font style="font-size:11pt" face="Calibri, sans-serif" class=""><b class="">From:</b><span class=""> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a><<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of David Hietpas <<a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a>><br class=""><b class="">Sent:</b><span class=""> </span>Wednesday, July 22, 2015 6:34 PM<br class=""><b class="">To:</b><span class=""> </span>Archivesspace Users Group<br class=""><b class="">Subject:</b><span class=""> </span>Re: [Archivesspace_Users_Group] Mysql connector issues with a source build</font><div class=""> </div></div><div class=""><div dir="ltr" class="">Hi Brian,<br class=""><div class=""><br class="">As I mentioned in the original email, I'm following the instructions posted from ArchivesSpace Github to setup a installation with prefixes (<a href="https://github.com/archivesspace/archivesspace/blob/master/README_PREFIX.md" target="_blank" class="">https://github.com/archivesspace/archivesspace/blob/master/README_PREFIX.md</a>).  I have to use prefixes at our institute, I can't use sub-domains due to policies.<br class=""></div><div class=""><br class=""></div><div class="">When I start with the original zip file, I don't run into this problem and the app starts up fine.  However, I'm plagued with url issues (css, js, assets, etc...) from the app when setting up the application with prefixes through Apache.<br class=""><br class=""></div><div class="">Thanks.<br class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jul 22, 2015 at 11:24 AM, Brian Hoffman<span dir="ltr" class=""><<a href="mailto:brianjhoffman@gmail.com" target="_blank" class="">brianjhoffman@gmail.com</a>></span><span class=""> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi David,<div class=""><br class=""></div><div class="">Why are you building the application from source rather than just downloading the zip and starting there? Can you confirm that you have the same problem when you start from the ZIP file?</div><div class=""><br class=""></div><div class="">Brian</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><div class=""><div class="">On Jul 22, 2015, at 11:07 AM, David Hietpas <<a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a>> wrote:</div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">Due to Archon migrations, I installed Aspace v1.0.4 (<a href="https://github.com/archivesspace/archivesspace/releases/tag/v1.0.4" target="_blank" class="">https://github.com/archivesspace/archivesspace/releases/tag/v1.0.4</a>) without issue but our University will not allow sub-domains so I have to use the Prefix method explained here (<a href="https://github.com/archivesspace/archivesspace/blob/master/README_PREFIX.md" target="_blank" class="">https://github.com/archivesspace/archivesspace/blob/master/README_PREFIX.md</a>)<br class=""><br class=""></div>So I reinstalled using the 1.0.4 from the source code adding the config/config.rb with the proper prefixes just as instructed.  I ran "build/run dist".  Unzipped the compiled code.  I put the mysql-connector-java.jar in the archivesspace/lib directory like I had in the working version above.  I've attached a screenshot.<br class=""><div class=""><div class=""><br class=""></div><div class="">It can't find the mysql-connector-java though it is in the lib directory of Archivesspace.  I've drop the exact version 5.1.13 as well as the newest.  It works perfectly fine in the non-source version but not the source build version.<br class=""></div><div class=""><br class="">Error:<span class=""> </span><a href="http://pastebin.com/FQVJEjEi" target="_blank" class="">http://pastebin.com/FQVJEjEi</a><br class=""><br class=""></div><div class="">Please advise.  Thanks.<br clear="all" class=""></div><div class=""><br class="">--<span class=""> </span><br class=""><div class=""><div dir="ltr" class=""><font face="'PrimaSans BT,Verdana,sans-serif'" class="">David Hietpas<br class="">University of Wisconsin Oshkosh<br class=""><a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a><span class=""> </span>| 920-424-0291</font></div></div></div></div></div></div><span class=""><lib-jar-example.jpg></span>_______________________________________________<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" target="_blank" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br class=""></blockquote></div><br class=""></div></div><br class="">_______________________________________________<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=""><br class=""></blockquote></div><br class=""><br clear="all" class=""><br class="">--<span class=""> </span><br class=""><div class=""><div dir="ltr" class=""><font face="'PrimaSans BT,Verdana,sans-serif'" class="">David Hietpas<br class="">University of Wisconsin Oshkosh<br class=""><a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a><span class=""> </span>| 920-424-0291</font></div></div></div></div></div></div></div><br class="">_______________________________________________<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=""><br class=""></blockquote></div><br class=""><br clear="all" class=""><br class="">--<span class=""> </span><br class=""><div class=""><div dir="ltr" class=""><font face="'PrimaSans BT,Verdana,sans-serif'" class="">David Hietpas<br class="">University of Wisconsin Oshkosh<br class=""><a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a><span class=""> </span>| 920-424-0291</font></div></div></div></div></div></div></div></blockquote></div><div class=""><div class="h5"><br class=""><br clear="all" class=""><br class="">--<span class=""> </span><br class=""><div class=""><div dir="ltr" class=""><font face="'PrimaSans BT,Verdana,sans-serif'" class="">David Hietpas<br class="">University of Wisconsin Oshkosh<br class=""><a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a><span class=""> </span>| 920-424-0291</font></div></div></div></div></div><div class=""><div class="h5">_______________________________________________<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" target="_blank" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></div></div></div></blockquote></div><br class=""></div></div><br class="">_______________________________________________<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="">
<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="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><font face="'PrimaSans BT,Verdana,sans-serif'" class="">David Hietpas<br class="">University of Wisconsin Oshkosh<br class=""><a href="mailto:hietpasd@uwosh.edu" target="_blank" class="">hietpasd@uwosh.edu</a> | 920-424-0291</font></div></div>
</div>
<span id="cid:5652F542-BA65-4B71-B23A-4465CCE348BA@Virginia.EDU"><example-bad-assets.jpg></span><span id="cid:92ED4DFC-6852-4712-BA29-AAE17CD89AD2@Virginia.EDU"><example-links-working.jpg></span>_______________________________________________<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>