Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts return 404 in PUI under a prefix #957

Closed
payten opened this issue Sep 3, 2017 · 1 comment
Closed

Fonts return 404 in PUI under a prefix #957

payten opened this issue Sep 3, 2017 · 1 comment

Comments

@payten
Copy link
Contributor

payten commented Sep 3, 2017

With all the prefix buzz, I revisited it all and came across a bug whereby the path to custom fonts and font-awesome is incorrect and returns a 404 for the ArchivesSpace PUI.

To replicate, you can use a Docker image to be your proxy (unless you're a lucky ducky and have apache installed already).

ASpace Server IP: 192.168.1.14
Proxy IP (Docker Image): 192.168.99.100

Setup ArchivesSpace
Fake a domain:
$ sudo vim /etc/hosts
192.168.99.100 proxy.payten.com

$ wget https://github.com/archivesspace/archivesspace/releases/download/v2.1.1/archivesspace-v2.1.1.zip
$ unzip archivesspace-v2.1.1.zip
$ vim archivesspace/config/config.rb

AppConfig[:frontend_proxy_url] = 'http://proxy.payten.com/staff/'
AppConfig[:public_proxy_url] = 'http://proxy.payten.com/public/'

$ archivesspace/archivesspace.sh

Setup Apache
$ docker pull linode/lamp
$ docker run -it --name aspace-proxy lamp
This will give you a shell in the docker instance:
docker$ apt-get update
docker$ apt-get install vim
docker$ vim /etc/apache2/apache2.conf
Add:

IncludeOptional mods-available/proxy.load
IncludeOptional mods-available/proxy.conf
IncludeOptional mods-available/proxy_http.load

docker$ vim /etc/apache2/mods-available/proxy.conf

<IfModule mod_proxy.c>
ProxyPass /staff http://192.168.1.14:8080/staff
ProxyPassReverse /staff http://192.168.1.14:8080/
ProxyPass /public http://192.168.1.14:8081/public
ProxyPassReverse /public http://192.168.1.14:8081/
</IfModule>

docker$ apache2ctl restart

Check in the browser
Staff interface:
screen shot 2017-09-04 at 9 04 50 am
Public:
screen shot 2017-09-04 at 9 20 59 am
Public (with patch provided - see incoming PR):
screen shot 2017-09-04 at 9 05 04 am

@lmcglohon
Copy link
Contributor

Fixed by #958

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants