我在本地主機上使用gitlab 5.2安裝程序(http://example.com),在Centos 6.4上我正面臨以下問題: 當我嘗試創建一個新的項目與導入現有的存儲庫,並提供github克隆鏈接(例如:https://github.com/XXXX/yyy.git)一個新項目與預期創建的導入回購, ,但當我嘗試創建一個新的項目導入現有回購協議並提供一個gitlab鏈接(例如:http://example.com/xxxx/foo.git
)`這是我自己的機器上一個新的EMPTY創建項目 我puma.stderr.log說:無法從http://localhost/xxx/xxx.git中導入回購
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殼是不能夠訪問回購(因爲沒有辦法檢查的日誌gitlab殼)
(在example.com是唯一的本地主機)
終於有了一些希望Apache服務器無法解析本地主機在 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
也hostname命令給
marvin
主機名--fqdn命令給出
marvin
我要去哪裏錯了。?
還我曾嘗試編輯 etc/hosts中
127.0.0.1 localhost localhost
170.95.204.18 marvin localhost
::1 localhost6.localdomain6 localhost6
,但沒有成功..