Mac OS X10.6.4とApache2.2.14を実行しているMacでAJAXプッシュエンジン(APE)をセットアップしようとしています。
APEサーバーを実行すると、次のように出力されます。
Hristo$ sudo ./aped
Password:
_ ___ ___
/_\ | _ \ __|
/ _ \| _/ _|
/_/ \_\_| |___|
AJAX Push Engine
Bind on port 6969
Version : 1.00
Build : Dec 7 2009 23:05:18
Author : Weelya (contact@weelya.com)
[Module] [spidermonkey] Loading module : Javascript embeded (0.01) - Anthony Catel
[JS] Loading script ../scripts/framework/mootools.js
[JS] Loading script ../scripts/framework/Http.js
[JS] Loading script ../scripts/framework/userslist.js
[JS] Loading script ../scripts/utils/utils.js
[JS] Loading script ../scripts/commands/proxy.js
[JS] Loading script ../scripts/commands/inlinepush.js
[JS] Loading script ../scripts/examples/nickname.js
[JS] Loading script ../scripts/examples/move.js
[JS] Loading script ../scripts/utils/checkTool.js
ape.conf
見た目は次のとおりです。
uid {
# "aped" switch to this user/group if it run as root
user = daemon
group = daemon
}
Server {
port = 6969
daemon = no
ip_listen = 127.0.0.1
domain = localape
rlimit_nofile = 10000
pid_file = /var/run/aped.pid
}
Log {
debug = 1
use_syslog = 0
logfile = ./ape.log
}
JSONP {
eval_func = Ape.transport.read
allowed = 1
}
Config {
#relative to ape.conf
modules = ../modules/lib/
modules_conf = ../modules/conf/
}
# Proxy section is used to resolve hostname and allow access to a IP:port (Middleware-TCPSocket feature)
#Proxy {
# id = freenode
# host = irc.freenode.net
# port = 6667
# readonly = false
#}
...そしてファイル内の仮想ホストのものはhttpd-vhosts.conf
次のようになります:
#
# Virtual Hosts
#
<Directory /Library/WebServer/Documents/APE>
Order Deny,Allow
Allow from all
</Directory>
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>
<VirtualHost *:80>
Servername localape
ServerAlias ape.localape
ServerAlias *.ape.localape
DocumentRoot "/Library/WebServer/Documents/APE"
</VirtualHost>
でテストファイルを実行すると/Tools/Check/index.html
、次のエラーが発生するAPEサーバーに到達するまでテストに合格します。
Running test : Contacting APE Server
Can't contact APE Server. Please check the your APE Server is running and the folowing url is pointing to your APE server : http://ape.localape:6969
Something went wrong. If you can't fix it by yourself post a message on the newsgroups with the output below or join our IRC channel
これを修正する方法について何かアイデアはありますか?
ありがとう。