1.Windows XP
2. apache 2.0.59
下载的包(附件):apache_2.0.59-win32-x86-no_ssl.msi
3. Sun Java System Active Server Pages 4.0.2 (不支持apache2.2)
下载地址: http://www.sun.com/download/products.xml?id=420a8e72
在安装Sun One Asp过程中. 在指定httpd.conf要进行配置时,如果无法获取httpd.conf文件,有两种可能:
a. 你的apache版本不是Sun One Asp所支持的;
b. 可能你的httpd.conf里的ServerName要改成 ServerName 你的服务器IP:80
4. 安装完后基本上可以运行asp了,别忘了在httpd.conf里的DirectoryIndex加上asp(添加主页索引)
5. 修改注册表,允许父路径
Sun One asp不支持父路径的解决方法:
打开注册表:把[HKEY_LOCAL_MACHINE\SOFTWARE\ChiliSoft\chiliasp\Parameters下的EnableParentPaths的值0改为1,重启一下apache就行了(如果不行,就重启服务器吧)。
以下问题就是因为Sun One asp默认不支持父路径
************************************************
Active Server Pages error 'ASP 0131 : 80004005′Disallowed Parent Path
XXXXX.asp, line XX
The Include file '../XXXX.htm' cannot contain '..' to indicate the parent directory.
************************************************