langeth
November 21, 2017, 4:50pm
1
I have gitlab version 10.1.4 behind apache. (omnibus installation)
If I go to the gitlab webpage I get the following errors:
https://git.xxx.com//assets/application-e1315cca43956f4f06252f5517b9f0f335acc69a8eec408a40d2ad7736199e99.css
https://git.xxx.com/assets/icons-76c4a61a43b91bb8e4cde6ba509e3919850e80bc83382ff1f8bce2ef19a1b33f.svg#angle-down
the assets seems to be located in /opt/gitlab/embedded/service/gitlab-rails/public/assets but could not be found.
Can somebody help ?
Thank you !
bartj
November 22, 2017, 12:22pm
2
can you post your apache configuration? Can you get your assets with wget or curl on apache or gitlab server if you use the gitlab IP:port combination (perhaps you need to make the asset temporarily public available)?
langeth
November 22, 2017, 3:36pm
3
I was missing the ProxyPass http://127.0.0.1:8181/ in the location tag.
e6d-l1h
November 17, 2018, 12:31pm
4
The 8080 host denies delivery of assets.
So these request must not be proxied, this config will help:
# needed for downloading attachments
DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public/
<Location />
ProxyPass http://127.0.0.1:8080/
# ProxyRequests Off
ProxyPreserveHost On
ProxyPassReverse http://127.0.0.1:8080/
Require all granted
</Location>
<Location /assets>
ProxyPass !
Require all granted
</Location>