You need to change AppConfig[:public_proxy_url] in config.rb from default 
localhost to actual hostname:

AppConfig[:frontend_url] = "http://localhost:8080";
AppConfig[:frontend_proxy_url] = proc { AppConfig[:frontend_url] }
AppConfig[:public_proxy_url] = proc { AppConfig[:public_url] }
AppConfig[:public_url] = "http://localhost:8081";

Not sure if there is a link back in the other direction ( public -> frontend ) 
but if there is you should also set :frontend_proxy_url


We usually have frontend proxied thru Apache, so I used this as my default 
configs, so it works whether I’m on test or production servers, but this 
wouldn’t work if VHOST names for proxies were different from hostname:

AppConfig[:hostname] = proc { Socket.gethostname }

AppConfig[:frontend_proxy_url] = proc { 
"http://#{AppConfig[:hostname]}<http://#{appconfig[:hostname]}>" }
AppConfig[:public_proxy_url] = proc { 
"http://#{AppConfig[:hostname]}:8081<http://#{appconfig[:hostname]}:8081>" }



— Steve M.



On Apr 25, 2017, at 2:11 PM, Daniel L Thacker 
<[email protected]<mailto:[email protected]>> wrote:

The view published option does not take us to the public side.  In the url it 
directs us to localhost.  We have to manually put our IP address where the 
localhost was and then we can see what the public sees. Is there anyway to fix 
this?  Thank you

Daniel Thacker
Digital Archivist
James C. Jernigan Library
Texas A&M University-Kingsville
MSC 197
700 University Blvd
Kingsville, TX  78363-8202
361-593-4154
_______________________________________________
Archivesspace_Users_Group mailing list
[email protected]<mailto:[email protected]>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

_______________________________________________
Archivesspace_Users_Group mailing list
[email protected]
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

Reply via email to