2

Centos 6.4 では、自分のローカルホスト ( http://example.com )で gitlab 5.2 セットアップを使用しています。既存のリポジトリをインポートして新しいプロジェクトを作成し、github クローン リンクを提供しようとすると、次の問題に直面しています (例: : https://github.com/XXXX/yyy.git ) インポートされたリポジトリで期待どおりに新しいプロジェクトが作成されますが、既存のリポジトリをインポートして新しいプロジェクトを作成しようとすると、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 がリポジトリにアクセスできないようです (gitlab-shell のログを確認する方法がないため)。

(example.com は localhost のみです)

最後に、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 

hostname --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 に答える