No styles or javascript loading in

I just set up GitLab to work on Apache on a CentOS 8 server, but now it’s not loading styles. I am getting the following:

and in the devtools I get:

I created an apache user and added it to the gitlab-www group and here is my virtual host file:

<VirtualHost *:80>
    ServerSignature Off

    ProxyPreserveHost On

    <Location />
      Order deny,allow
      Allow from all


    RewriteEngine on
    RewriteRule .*{REQUEST_URI} [P,QSA]

    # needed for downloading attachments
    DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public

    ErrorLog /var/log/httpd/error_log
    CustomLog /var/log/httpd/access_log combined env=!dontlog

Please let me know if you need more info


the Omnibus package for GitLab provide a ready-to-use Nginx webserver, and integrate well with Lets Encrypt for TLS certificates. Is there a specific requirement to put an Apache proxy in front of it? From a quick look, the DocumentRoot setting looks suspicious, limiting access to static files.

Kind regards,

1 Like

I wanted to use Apache because that’s what I use to host websites on and nginx doesn’t run alongside Apache as they obviously use the same port and I previously set it up to work on different ports, but that didn’t work either because of DNS issues. What do I need to change on the DocumentRoot??