Standalone should also run on the the WebGoat context root
This commit is contained in:
@ -57,7 +57,7 @@ public class Main {
|
|||||||
void run() throws Exception {
|
void run() throws Exception {
|
||||||
String webappDirLocation = "webgoat-container/src/main/webapp/";
|
String webappDirLocation = "webgoat-container/src/main/webapp/";
|
||||||
Tomcat tomcat = new Tomcat();
|
Tomcat tomcat = new Tomcat();
|
||||||
StandardContext ctx = (StandardContext) tomcat.addWebapp("/", new File(webappDirLocation).getAbsolutePath());
|
StandardContext ctx = (StandardContext) tomcat.addWebapp("/WebGoat", new File(webappDirLocation).getAbsolutePath());
|
||||||
|
|
||||||
Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
|
Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
|
||||||
connector.setPort(port);
|
connector.setPort(port);
|
||||||
|
Reference in New Issue
Block a user