From: <php...@li...> - 2010-06-24 09:53:47
|
> The server is located on the local network. The web browsers on the > company computers are set to work through the company's proxy. > With the proxy, I can reach and run any of the Java applications > without any problem. > /JavaBridge/jsr223.jsp can be reached as I mentionned in my previous > post, but all the .php files cannot be reached at all. > When I disable the proxy, the Java applications are still available, > and my Php application works too. Before doing anything else, can you please disable the PhpCgiFilter in your web-inf/web.xml? It simply returns under certain conditions. If that works, your proxy uses a url that the filter cannot parse. Do you have a packet sniffer (ethereal for example)? If not firebug may also reveil the problem. Take a look at the tomcat log, it should contain GET requests for .php files. > So I tried to rename index.php into index.phtml. What I get is a > uninterpreted php file (the text content of my php file. seems normal Good. > by > > <servlet-mapping> > <servlet-name>PhpCGIServlet</servlet-name> > <url-pattern>*.phtml</url-pattern> > </servlet-mapping> > > Then I tried to open index.phtml, but could not reach it. I assume you have restarted tomcat after that. -- Interesting. Do you see the requestin the tomcat log? Any new exceptions? > Can you confirm that the PhpCGIServlet mapping is only necessary in > the JavaBridge/WEB-INF/web.xml? Yes. BTW: Did jsr223.jsp return the PHP-generated content or an exception? Regards, Jost Bökemeier |