我只想在本地計算機上使用APE。這是我第一次在運行ubuntu的虛擬機上安裝APE,我用local.ape-project.org/APE_JSF/Tools/Check/上的檢查工具成功地在VM中測試了它。我高興地大膽地傳達了「所有的測試都完成了,現在你可以和你的APE一起玩了」。無法聯繫主機上的虛擬機上的Ape-Server
現在我試着更進一步。我試圖從運行windows7的主機訪問相同的一面,並進行了相同的測試。我收到一個錯誤,因爲檢查工具試圖在最後聯繫ape服務器並顯示以下消息:「無法聯繫APE服務器。請檢查以下URL是否指向您的APE服務器:http://0.ape.local.ape-project.org:6969。如果我在主機上檢索到http://local.ape-project.org:6969/我得到的大標題是「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 [email protected]
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>