2011-11-02 103 views
0

当我输入url ..“http:localhost:9999/my-app/cgi-bin/proxy.cgi”时,我得到了proxy.cgi的脚本而不是openlayers.org。 我在端口8080 中使用GlassFish 3.0.1在端口9999和利用Geoserver 2.1.1我做我的项目在Windows 7proxy.cgi为什么不能执行?

回答

0

这是因为你的GlassFish应用服务器未配置为运行CGI。看看这个资源:http://jfarcand.wordpress.com/2006/04/06/enabling-cgi-support-in-glassfish/

我希望它会有所帮助。

顺便说一句,你提到的网址http:localhost:9999/my-app/cgi-bin/proxy.cgi似乎是错误的:'http:'后缺少2个斜杠。它应该是:http://localhost:9999/my-app/cgi-bin/proxy.cgi

+0

Thanx为您的答案。我已遵循http://jfarcand.wordpress.com/2006/04/06/enabling-cgi-support-in-glassfish/相应,但它没有工作。我在Web-inf下创建了cgi文件夹,并在其下放置了proxy.cgi。我有这个http:// localhost:9999/my-app/cgi-bin/proxy.cgi,但仍然出现空白页面。Live HttpHeader显示此 –

+0

GET /TravelPlanner-00/cgi-bin/proxy.cgi HTTP/1.1 主机:localhost:9999 用户代理:Mozilla/5.0(Windows NT 6.1; WOW64; rv:6.0.2)Gecko/20100101 Firefox/6.0.2 Accept-Language:en-us,en; q = 0.5 Accept-Encoding:text/html,application/xhtml + xml, gzip,deflate Accept-Charset:ISO -8859-1,utf-8; q = 0.7,*; q = 0.7 连接:keep-alive Cookie:JSESSIONID = 61f3f041565ef7f10df44bfb04d3; JSESSIONID = 608c2c61c7ff937b40b4108a3ed1; treeForm:tree-hi = treeForm:tree:configuration:httpService –

+0

HTTP/1.1 200 OK X-Powered-By:Servlet/3.0 服务器:GlassFish Server开源版3.0.1 内容长度:0 日期:Wed ,2011年11月2日21:36:15 GMT –