配置GitLab出现500错误
今天按照网上配置的文档配置gitlab其他的都很正常,只不过在配置web的时候总是报500错误。网上的都是用nginx来配置的,因本地已经有apache所以就直接用apache来做的。但是配置完以后一直都是报500的错误,请亲们帮忙。下面是虚拟主机的配置 操作系统是ubuntu
<VirtualHost *:80> ServerName git.test.com ServerSignature Off ProxyPreserveHost On <Location /> Order deny,allow Allow from all ProxyPassReverse http://127.0.0.1:8080 ProxyPassReverse http://git.test.com/ </Location> #apache equivalent of nginx try files # http://serverfault.com/questions/290784/what-is-apaches-equivalent-of-nginxs-try-files # http://stackoverflow.com/questions/10954516/apache2-proxypass-for-rails-app-gitlab RewriteEngine on RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA] # needed for downloading attachments DocumentRoot /home/git/gitlab/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/test_error.log CustomLog /var/log/apache2/test_forwarded.log common_forwarded CustomLog /var/log/apache2/test_access.log combined env=!dontlog CustomLog /var/log/apache2/test.log combined </VirtualHost>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ProxyPassReverse http://127.0.0.1:8080 后面的url配置的是gitlab/config/unicorn.rb 里面配置的端口吗?
类似:
# listen on both a Unix domain socket and a TCP port,
# we use a shorter backlog for quicker failover when busy
listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64
listen "192.168.1.205:7685", :tcp_nopush => true
看过gitlab的日志么? 可以先确定一下500 是在哪个阶段发生的