我只想在我的本地计算机上使用APE。这是我第一次在运行ubuntu的虚拟机上安装APE,我在VM上使用local.ape-project.org/APE_JSF/Tools/Check/上的检查工具成功测试了它。我很高兴地传达了大胆的信息“所有的测试都已完成。现在你可以玩你的APE了”。
现在我试图更进一步。我试图从运行windows7的主机访问同一侧并进行相同的测试。我收到错误,因为检查工具尝试联系最终的ape服务器,并显示以下消息“无法联系APE服务器。请检查以下URL是否指向您的APE服务器:http://0.ape.local.ape-project.org:6969。如果我在主机上检索http://local.ape-project.org:6969/我得到了标题为“APE Server”的ape默认页面,它显示我可以从主机访问ape服务器。那么我忘记了什么?
apache服务器在端口80上运行。
虚拟机的内部静态IP位于192.168.178.5,因此我将以下行添加到C:\ WINDOWS \ system32 \ drivers \ etc \ hosts文件中,如ape-project.org上的手册所指定。 ..
192.168.178.5 local.ape-project.org
192.168.178.5 ape.local.ape-project.org
192.168.178.5 0.local.ape-project.org
192.168.178.5 1.local.ape-project.org
192.168.178.5 2.local.ape-project.org
192.168.178.5 3.local.ape-project.org
192.168.178.5 4.local.ape-project.org
192.168.178.5 5.local.ape-project.org
192.168.178.5 6.local.ape-project.org
192.168.178.5 7.local.ape-project.org
192.168.178.5 8.local.ape-project.org
192.168.178.5 9.local.ape-project.org
我的APE配置文件的前两部分如下所示
uid {
# "aped" switch to this user/group if it run as root
user = daemon
group = daemon
}
Server {
port = 6969
daemon = yes
ip_listen = 0.0.0.0 // i also tried to bind it on the internal ip (does not work)
domain = ape-project.org
rlimit_nofile = 10000
pid_file = /var/run/aped.pid
}
[...]
APE JSF具有以下配置(config.js)
/***
* APE JSF Setup
*/
APE.Config.baseUrl = 'http://local.ape-project.org/APE_JSF'; //APE JSF
APE.Config.domain = 'ape-project.org';
APE.Config.server = 'ape.local.ape-project.org:6969'; //APE server URL
我检索apache2的默认页面以访问我的网站(... / apache2 / sites-available / default)
<VirtualHost *:80>
ServerName local.ape-project.org
ServerAlias ape.local.ape-project.org
ServerAlias *.ape.local.ape-project.org
ServerAdmin webmaster@localhost
DocumentRoot /home/kuro/Shares/Web/JSF/Website/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/kuro/Shares/Web/JSF/Website/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
...
..
.
</VirtualHost>
答案 0 :(得分:0)
192.168.178.5 local.ape-project.org
192.168.178.5 ape.local.ape-project.org
192.168.178.5 0.ape.local.ape-project.org
192.168.178.5 1.ape.local.ape-project.org
192.168.178.5 2.ape.local.ape-project.org
192.168.178.5 3.ape.local.ape-project.org
...
这就是为什么我从主机上运行我的ape服务器失去了几个小时的原因... 现在它工作正常!