2017-12-06 35 views
0

기업 프록시 뒤에있는 Windows 10 노트북에서 작업하고 있습니다. 마지막으로 VirtualBox, Vagrant 및 Homestead를 설정할 수있었습니다.Laravel Homestead : 요청 된 URL을 검색 할 수 없습니다 (프록시 뒤에서 작업 중임)

불행히도 브라우저에서 내 사이트에 액세스 할 수 없습니다. 그것은 말합니다 : 요청한 URL을 검색 할 수 없으므로 호스트 이름 "test.app"에서 IP 주소를 확인할 수 없습니다.

방랑벽 플러그인 vagrant-proxyconf을 설치하고 Homestead-folder 내 Vagrantfile에 설정했습니다. 내 Vagrantfile에 다음 줄을 추가했습니다 :

192.168.10.10 test.app 

기계 :

--- 
ip: "192.168.10.10" 
memory: 2048 
cpus: 2 
provider: virtualbox 

authorize: ~/.ssh/id_rsa.pub 

keys: 
    - ~/.ssh/id_rsa 

folders: 
    - map: C:/Users/wn00111510/Projekte/ContentAnalyzer 
     to: /home/vagrant/contentanalyzer 
    - map: C:/Users/wn00111510/Projekte/Test 
     to: /home/vagrant/test 

sites: 
    - map: test.app 
     to: /home/vagrant/test 

databases: 
    - homestead 

내 호스트 파일은 하나의 항목이 있습니다

# -*- mode: ruby -*- 
# vi: set ft=ruby : 

require 'json' 
require 'yaml' 

VAGRANTFILE_API_VERSION ||= "2" 
confDir = $confDir ||= File.expand_path(File.dirname(__FILE__)) 

homesteadYamlPath = confDir + "/Homestead.yaml" 
homesteadJsonPath = confDir + "/Homestead.json" 
afterScriptPath = confDir + "/after.sh" 
aliasesPath = confDir + "/aliases" 

require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb') 

Vagrant.require_version '>= 1.9.0' 

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 

    if Vagrant.has_plugin?("vagrant-proxyconf") 
     config.proxy.http  = "http://proxy.my.proxy.com:3128" 
     config.proxy.https = "http://proxy.my.proxy.com:3128" 
     config.proxy.no_proxy = "localhost,127.0.0.1,192.168.10.10" 
    end 
    # ... default configuration 
end 

이 내 Homestead.yaml입니다 실행 중이며 방글라데시 ssh를 통해 가상 컴퓨터에 로그인 할 수 있습니다. 방황 재로드 - 프로비저닝은 어떤 것도 변경하지 않습니다.

... 
Booting VM... 
Waiting for machine to boot. THis may take a few minutes... 
SSH address: 127.0.0.1:2222 
SSH username: vagrant 
SSH auth method: private key 
Warning: Connection reset. Retrying... 
Warning: Remote Connection disconnect. Retrying... 
Warning: Connection reset. Retrying... 
Warning: Remote Connection disconnect. Retrying... 
Warning: Connection reset. Retrying... 
Machine booted and ready! 
... 

어떤 아이디어 : 연결 재설정에 대한 경고가 부팅시

?

답변

0

프록시에 대한 전문 지식이 없지만 귀하의 컴퓨터에 로컬이므로 은 모든 프록시를 무시할 수 있어야합니다. 프록시 플러그인을 사용하지 않으려 고 시도 했습니까? 여기

오류 :

Warning: Connection reset. Retrying... 
Warning: Remote Connection disconnect. Retrying... 

는 한 기계가 적절한 시간에 연결로 일반적으로 더 큰 문제가 없습니다.

사이트 1 개만 컴퓨터에 매핑 했으므로 http://localhost:8000 (또는 vagrant up 프로세스 중에 Vagrant가 80에 매핑 한 다른 포트)를 사용하여 DNS를 완전히 무시할 수 있어야합니다.