0

I just tried to install GitLab to my root server.

But hen I access the webpage using Apache for a proxy, I get a “503 Service Unavailable” message.

Here is my Apache VirtualHost configuration file:

<VirtualHost *:80>
  ServerName git.example.at

  DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public/
  <Directory /opt/gitlab/embedded/service/gitlab-rails/public/>
    Require all granted
  </Directory>

  ProxyPreserveHost On
  AllowEncodedSlashes Off

  <Location />
    Order deny,allow
    Allow from all
    ProxyPassReverse http://127.0.0.1:8080
    ProxyPassReverse http://git.example.at/
  </Location>

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

The full gitlab.rb configuration file can be found here on Pastebin.

1 Answer 1

0

In your Apache VirtualHost configuration, both lines read ProxyPassReverse:

<Location />
  Order deny,allow
  Allow from all
  ProxyPassReverse http://127.0.0.1:8080
  ProxyPassReverse http://git.example.at/
</Location>

I think it should be:

<Location />
  Order deny,allow
  Allow from all
  ProxyPass / http://127.0.0.1:8080
  ProxyPassReverse http://git.example.at/
</Location>
2
  • now i get the Message "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
    – David Nagl
    Commented Mar 9, 2017 at 18:06
  • Ok, that's because of the / in the ProxyPass line. Please remove it.
    – Rik Tytgat
    Commented Mar 9, 2017 at 21:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .