From: <php...@li...> - 2010-06-25 04:01:27
|
Hello, Thanks for your precious answers Jost. I think I found the issue, but I am not able to solve it. See below. On Thu, Jun 24, 2010 at 5:53 PM, <php...@li...> wrote: >> 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. I think i got it. The company's proxy is making HTTP/1.0 requests... Otherwise if I disable the filter, I just got 404 status code. Is there any way to parse correctly HTTP/1.0 ? >> 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? Yes there is an exception, but you told me before it was because my Jre was outdated and you are right. Regards, Julien Mallet. |