Web IDE gitlab-omnibus-apache24.conf - files won't load

GitLab 12.5.3 (225d2e5bb89) using external Apache2 web server, the Web IDE would not load. I found the gitlab-omnibus-apache24.conf that indicated NE should be added to the virtual host file's rewrite rule. I did that and restarted Apache. The Web IDE then started fine and displayed the list of files on the left. However, selecting any file only showed a blank line 1 in the editor. Opening the file in 'file view' works fine.

I created a new branch and attempted to edit the file. It would not load in to the editor.

gitlab.conf

<VirtualHost *:80>
  ServerName pc-gitlab.mw-process-ctrl.com
  ServerSignature Off
  ProxyPreserveHost On
  AllowEncodedSlashes NoDecode

  <Location />
      Require all granted
      ProxyPassReverse http://127.0.0.1:8080
      ProxyPassReverse pc-gitlab.mw-process-ctrl.com
  </Location>

  RewriteEngine on
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA,NE]

  # needed for downloading attachments

  DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public

  #Set up apache error documents, if back end goes down (i.e. 503 error) then a maintenance/deploy page is thrown up.
  ErrorDocument 404 /404.html
  ErrorDocument 422 /422.html
  ErrorDocument 500 /500.html
  ErrorDocument 503 /deploy.html
  LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common_forwarded
  ErrorLog  /var/log/apache2/pc-gitlab.mw-process-ctrl.com_error.log
  CustomLog /var/log/apache2/pc-gitlab.mw-process-ctrl.com_forwarded.log common_forwarded
  CustomLog /var/log/apache2/pc-gitlab.mw-process-ctrl.com_access.log combined env=!dontlog
  CustomLog /var/log/apache2/pc-gitlab.mw-process-ctrl.com.log combined
</VirtualHost>

I did add the

web_server['external_users'] = ['www-data']
web_server['username'] = 'gitlab-www'
web_server['group'] = 'gitlab-www'

to my gitlab.rb configuration file.

nginx is disabled.

I moved the git-data to another location as well but I used rsync so the permissions should be OK. I also moved the internal PostgreSQL data storage as well.

Does the Web IDE use different permissions to access the files than the file editor?

I created a file in the Web IDE and committed it. When I attempted to access it again, the file wouldn't load.

Edited by Greg Bryant