How to serve PHP pages on jetty server with Apache Karaf? [message #1845091] |
Wed, 06 October 2021 09:59 |
Luis Temporal Messages: 1 Registered: October 2021 |
Junior Member |
|
|
Hello.
Iḿ trying to deploy a PHP web application with Apache Karaf using Jetty server.
I don't know how to configure ${KARAF_HOME}/etc/jetty.xml file to serve PHP pages.
With the following configuration i can view the structure of the directory, but doesn't interpret PHP files:
<Get name="handler">
<Call name="addHandler">
<Arg>
<New class="org.eclipse.jetty.servlet.ServletContextHandler">
<Set name="contextPath">/</Set>
<Set name="resourceBase">${KARAF_HOME}/data/pax-web-jsp
</Set>
<Call name="addServlet">
<Arg>org.eclipse.jetty.servlet.DefaultServlet</Arg>
<Arg>/</Arg>
</Call>
</New>
</Arg>
</Call>
</Get>
Any idea how can deploy PHP pages using native CGI of PHP? Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03084 seconds