Apache 无法从导入回购http://localhost/xxx/xxx.git

Apache 无法从导入回购http://localhost/xxx/xxx.git,apache,proxy,gitlab,puma,isaserver,Apache,Proxy,Gitlab,Puma,Isaserver,我正在Centos 6.4上的localhost()上使用gitlab 5.2安装程序 我面临以下问题,, 当我尝试使用导入现有存储库创建新项目并提供github克隆链接(例如:)时,将使用导入的repo按预期创建一个新项目, 但是,当我尝试使用导入现有回购创建新项目并提供gitlab链接时(例如:http://example.com/xxxx/foo.git)`在我自己的机器上创建了一个新的空项目 我的puma.stderr.log上写着: error: The requested URL r

我正在Centos 6.4上的localhost()上使用gitlab 5.2安装程序 我面临以下问题,, 当我尝试使用导入现有存储库创建新项目并提供github克隆链接(例如:)时,将使用导入的repo按预期创建一个新项目, 但是,当我尝试使用导入现有回购创建新项目并提供gitlab链接时(例如:
http://example.com/xxxx/foo.git
)`在我自己的机器上创建了一个新的空项目 我的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只是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>
hostname命令还提供

marvin 
marvin
hostname--fqdn命令提供

marvin 
marvin
我哪里做错了

我也尝试过编辑 etc/主持人

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

但是没有成功。

添加到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>
root@debian:/home/marek#cat/etc/apache2/sites available/yourdomain.conf
服务器名你的域名
DocumentRoot“/home/marek/public\u html/yourdomain/web”
DirectoryIndex.php
允许超越所有
通融
别名/sf/home/marek/public_html/yourdomain/lib/vendor/symfony/data/web/sf
允许超越所有
通融
CustomLog/var/log/apache2/yourdomain.log组合
ErrorLog/var/log/apache2/yourdomain-error.log