我的家庭networking中有两台服务器:第一台是基于ARM的Linux计算机,运行在定制的Debian 3.4.43内核上。第二台是带有以太网盾的Arduino。
我在linux服务器上安装了avahi和apache2,安装了apache mod-dnssd并configuration了以下服务:
afpd.service:
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">%h</name> <service> <type>_afpovertcp._tcp</type> <port>548</port> </service> <service> <type>_device-info._tcp</type> <port>0</port> <txt-record>model=MacPro</txt-record> </service> </service-group>
ssh.service:
<service-group> <name replace-wildcards="yes">%h</name> <service> <type>_ssh._tcp</type> <port>22</port> </service> </service-group>
而且,Apache的mod_dnssd之后没有我想要的,也是http.service:
<?xml version="1.0" standalone='no'?> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name>Cubie Remote</name> ## Name of the service <service> <type>_http._tcp</type> <port>80</port> </service> </service-group>
在Arduino上,我使用了一个库来做零configuration。 我不会提供详细信息,但是原则上应该在不同的服务器上发布类似于具有相同types和端口但名称不同的http.service的服务。
到目前为止,以下的事情工作(有或没有广告的http服务):
但是:在我的iMac,在Safari 7.0.1
它几乎看起来像Safari期待一种特殊的干净的HTTP或一些授权,以便能够连接到广告服务。 任何想法可能会导致什么? 还是我只是盲目的,在Safari和/或安全性的偏好,有一个明显的checkbox,需要打勾?
但是,对于Safari来说,这似乎是非常独特的,因为在Chrome和Firefox中正确parsing名称(在使用ping,ssh等的terminal中,我甚至可以通过端口80远程login服务器)
好的,我在这里回答我自己的问题。 我安装了Sophos反病毒,因为我是偏执狂;)我看到一些日志条目与iMac上的web服务没有真正的关系。 长话短说,禁用Sophos Anti Virus中的Web Protection使上述现象消失,马上…