【发布时间】:2015-06-11 14:28:17
【问题描述】:
我在我的 Ubuntu 15 上安装了 Vagrant 和 VM,添加了一个盒子并没有问题地做了一个 vagrant。但是当我对浏览器说 127.0.0.1:8080 时,我无法连接到我的项目。我在 vagrant 上做错了什么?
这是我的 Vagrantfile:
Vagrant.configure(2) do |config|
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://10.0.1.254:3128/"
config.proxy.https = "http://10.0.1.254:3128/"
config.proxy.no_proxy = "localhost,127.0.0.1,.teste.com"
end
config.vm.box = "hashicorp/precise32"
config.vm.network "forwarded_port", guest: 80, host: 8080
end
【问题讨论】:
-
Apache 安装了吗?抛出的错误是什么?