2

我正在我的本地主机(http://example.com)上使用 gitlab 5.2 设置,在 Centos 6.4 上,当我尝试使用导入现有存储库创建一个新项目并提供 github 克隆链接(例如:https ://github.com/XXXX/yyy.git )使用导入的repos按预期创建了一个新项目,但是当我尝试使用导入现有repo创建一个新项目并提供一个gitlab链接(例如:http://example.com/xxxx/foo.git)`在我自己的机器上创建了一个新的EMPTY项目,我的 puma.stderr.log 说:

error: The requested URL returned error: 502 Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL).) while accessing http://example.com/xxxx/foo.git/info/refs

似乎我的 puma 无法访问请求的 url,或者 gitlab-shell 无法访问 repo(因为无法检查 gitlab-shell 的日志)

(example.com 只是本地主机)

最后有些希望apache服务器无法解析localhost apache日志中的错误是

[error] avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name

我的 gitlab.conf 是

<VirtualHost *:80>
  ServerName localhost
  ProxyRequests Off
    <Proxy *>
       Order deny,allow
       Allow from all
    </Proxy>
    ProxyPreserveHost On
    ProxyPass / http://localhost:9292/
    ProxyPassReverse / http://localhost:9292/
</VirtualHost>

我的 /etc/hosts 文件是

127.0.0.1 marvin localhost
170.xx.xx.x marvin localhost

主机名命令也给出

marvin 

主机名 --fqdn 命令给出

marvin

我哪里错了。?

我也尝试过编辑 etc/hosts

127.0.0.1 localhost localhost
170.95.204.18 marvin localhost
::1 localhost6.localdomain6 localhost6

但没有成功..

4

1 回答 1

0

添加到您的 domain.conf 路径日志和错误日志

CustomLog /var/log/apache2/yourdomain.log combined
ErrorLog /var/log/apache2/yourdomain-error.log

例如:

root@debian:/home/marek# cat /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
  ServerName yourdomain
  DocumentRoot "/home/marek/public_html/yourdomain/web"
  DirectoryIndex index.php
  <Directory "/home/marek/public_html/yourdomain/web">
    AllowOverride All
    Allow from All
  </Directory>

  Alias /sf /home/marek/public_html/yourdomain/lib/vendor/symfony/data/web/sf
  <Directory "/home/marek/public_html/yourdomain/lib/vendor/symfony/data/web/sf">
    AllowOverride All
    Allow from All
  </Directory>

  CustomLog /var/log/apache2/yourdomain.log combined
  ErrorLog /var/log/apache2/yourdomain-error.log

</VirtualHost>
于 2015-11-29T14:01:34.587 回答