Using this code...
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
public class OneWebApp
{
public static void main(String[] args) throws Exception
{
String jetty_home = "C:/Software/jetty";
Server server = new Server(8080);
WebAppContext webapp = new WebAppContext();
webapp.setContextPath("/");
webapp.setWar(jetty_home+"/quercus-4.0.18.war");
server.setHandler(webapp);
server.start();
server.join();
}
}
... I can read PHP files from the webapp directory: C:\Documents and Settings\mydir\Local Settings\Temp\jetty-0.0.0.0-8080-quercus-4.0.18.war-_-any-\webapp
How can I configure Jetty to look for the PHP files in another directory? For example: C:\Projects\phpfiles
With Apache, I would simply do something like this in the config:
Alias /phpfiles "C:\Projects\phpfiles"
<Directory C:\Projects\phpfiles>
Order allow,deny
Allow from all
AllowOverride All
</Directory>