有https的流浪汉,可以';无法从主机连接到来宾

有https的流浪汉,可以';无法从主机连接到来宾,https,vagrant,vagrantfile,Https,Vagrant,Vagrantfile,如果我在vagrant上运行apache和varnish,并在来宾和主机上运行以下操作,则效果良好: //guest wget http://localhost/app_dev.php //host wget http://localhost:8080/app_dev.php 我的文件如下所示: config.vm.network "forwarded_port", guest: 80, host: 8080 现在我将尝试ssl,因此将其更改为 config.vm.network "

如果我在vagrant上运行apache和varnish,并在来宾和主机上运行以下操作,则效果良好:

//guest
wget http://localhost/app_dev.php
//host
wget http://localhost:8080/app_dev.php
我的文件如下所示:

  config.vm.network "forwarded_port", guest: 80, host: 8080
现在我将尝试ssl,因此将其更改为

  config.vm.network "forwarded_port", guest: 443, host: 8080
然后在客人身上,我开始使用httpd、清漆和英镑。现在我无法再从主机连接:

//on guest:
wget --no-check-certificate https://localhost:443/app_dev.php
//results in 200 OK
//on host
wget --no-check-certificate https://localhost:8080/app_dev.php
//results in
//--2014-06-22 23:43:34--  https://localhost:8080/app_dev.php
//Resolving localhost (localhost)... 127.0.0.1
//Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
//Unable to establish SSL connection.
不确定这里的问题是什么,是否不允许通过8080创建ssh

在文件中尝试以下操作时

  config.vm.network "forwarded_port", guest: 443, host: 443
我在启动时收到警告:

==> default: You are trying to forward to privileged ports (ports <= 1024). Most
==> default: operating systems restrict this to only privileged process (typically
==> default: processes running as an administrative user). This is a warning in case
==> default: the port forwarding doesn't work. If any problems occur, please try a
==> default: port higher than 1024.
然后添加到我的主机中

33.33.33.10     site
当我在guest上启动httpd、varnish和pound时(httpd监听8080,varnish监听80,pound监听443),我可以得到http:site/,http:site:8080,但没有https:site(必须删除//或无法发布),guest的wget在那里工作(响应200,预期html)

在我试过的客人身上

iptables -A INPUT -p tcp --dport 443 -j ACCEPT

但同样的结果是,我想不出为什么Vagrant fedora box会阻止https端口,但可能是因为我不知道如何使用iptables。

pound中存在问题,/etc/pound.cfg看起来像:

ListenHTTPS
    Address localhost
    Port    443
改为:

ListenHTTPS
    Address 33.33.33.10
    Port    443
解决了这个问题

ListenHTTPS
    Address 33.33.33.10
    Port    443