diff --git a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java b/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java
index 1c89db03e..534e26bd5 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java
@@ -23,6 +23,10 @@ public class RouterConsoleRunner {
private String _listenHost = "127.0.0.1";
private String _webAppsDir = "./webapps/";
+ static {
+ System.setProperty("org.mortbay.http.Version.paranoid", "true");
+ }
+
public RouterConsoleRunner(String args[]) {
if (args.length == 3) {
_listenPort = args[0].trim();
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java
index 5d920fa07..7967ee72e 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java
@@ -335,7 +335,9 @@ public class SummaryHelper {
public String getDestinations() {
ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
try {
- _context.clientManager().renderStatusHTML(new OutputStreamWriter(baos));
+ OutputStreamWriter osw = new OutputStreamWriter(baos);
+ _context.clientManager().renderStatusHTML(osw);
+ osw.flush();
return new String(baos.toByteArray());
} catch (IOException ioe) {
_context.logManager().getLog(SummaryHelper.class).error("Error rendering client info", ioe);
diff --git a/build.xml b/build.xml
index 1de72f42b..b196c8d7d 100644
--- a/build.xml
+++ b/build.xml
@@ -6,7 +6,7 @@
This is your eepsite - simply edit the files under ./eepsite/docroot/ + and they'll be reachable. The 'key' to your eepsite that you need to + give to other people is shown on the I2PTunnel configuration + configuration page).
++ If you have any standard java web applications (.war files) such as + blojsom + or SnipSnap, simply drop their .war + file into ./eepsite/webapps/ and they'll be reachable at + http://$yourEeepsite/warFileName/
+ +You can also reach your eepsite locally through + http://localhost:7658/. If you + want to change the port number, edit the file ./eepsite/jetty.xml and + update the I2PTunnel configuration accordingly.
+ + diff --git a/installer/resources/i2ptunnel.config b/installer/resources/i2ptunnel.config index 174ae0550..86d624e91 100644 --- a/installer/resources/i2ptunnel.config +++ b/installer/resources/i2ptunnel.config @@ -38,14 +38,14 @@ tunnel.2.option.tunnels.numInbound=2 tunnel.2.startOnLoad=false # local eepserver -#tunnel.3.name=eepsite -#tunnel.3.description=My eepsite -#tunnel.3.type=server -#tunnel.3.targetHost=localhost -#tunnel.3.targetPort=8000 -#tunnel.3.privKeyFile=eepPriv.dat -#tunnel.3.i2cpHost=localhost -#tunnel.3.i2cpPort=7654 -#tunnel.3.option.tunnels.depthInbound=2 -#tunnel.3.option.tunnels.numInbound=2 -#tunnel.3.startOnLoad=true \ No newline at end of file +tunnel.3.name=eepsite +tunnel.3.description=My eepsite +tunnel.3.type=server +tunnel.3.targetHost=localhost +tunnel.3.targetPort=7658 +tunnel.3.privKeyFile=eepsite/eepPriv.dat +tunnel.3.i2cpHost=localhost +tunnel.3.i2cpPort=7654 +tunnel.3.option.tunnels.depthInbound=2 +tunnel.3.option.tunnels.numInbound=2 +tunnel.3.startOnLoad=true \ No newline at end of file diff --git a/installer/resources/jetty.xml b/installer/resources/jetty.xml new file mode 100644 index 000000000..fc625055d --- /dev/null +++ b/installer/resources/jetty.xml @@ -0,0 +1,160 @@ + + + + + + + +