diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.java index a0006c9e7..25c41fc6b 100644 --- a/htroot/SettingsAck_p.java +++ b/htroot/SettingsAck_p.java @@ -169,6 +169,12 @@ public class SettingsAck_p { // server access if (post.containsKey("serveraccount")) { + + // fileHost + String fileHost = (post.get("fileHost")).trim(); + if (fileHost != null && !fileHost.isEmpty() && !fileHost.equals(env.getConfig("fileHost", "localpeer"))) { + env.setConfig("fileHost", fileHost); + } // static IP String staticIP = (post.get("staticIP")).trim(); diff --git a/htroot/Settings_ServerAccess.inc b/htroot/Settings_ServerAccess.inc index 1400d6d85..a002ba2d5 100644 --- a/htroot/Settings_ServerAccess.inc +++ b/htroot/Settings_ServerAccess.inc @@ -3,7 +3,7 @@ - + + + + + + diff --git a/htroot/Settings_p.java b/htroot/Settings_p.java index 393efe729..1386e6ee8 100644 --- a/htroot/Settings_p.java +++ b/htroot/Settings_p.java @@ -77,6 +77,7 @@ public final class Settings_p { prop.putHTML("peerName", sb.peers.mySeed().getName()); prop.putHTML("staticIP", env.getConfig("staticIP", "")); + prop.putHTML("fileHost", env.getConfig("fileHost", "localpeer")); String peerLang = env.getConfig("locale.language", "default"); if (peerLang.equals("default")) peerLang = "en"; prop.putHTML("peerLang", peerLang);
IP-Number filter:
(requires restart)

(requires restart)
Here you can restrict access to the server. By default, the access is not limited, because this function is needed to spawn the p2p index-sharing function. If you block access to your server (setting anything else than '*'), then you will also be blocked @@ -46,6 +46,14 @@ If the value you enter here does not match with this IP, you will not be able to access the server pages anymore.
fileHost:
(requires restart)
Set this to avoid error-messages like 'proxy use not allowed / granted' on accessing your Peer by its hostname. + Virtual host for httpdFileServlet access for example http://FILEHOST/ shall access the file servlet and + return the defaultFile at rootPath either way, http://FILEHOST/ denotes the same as http://localhost:/ + for the preconfigured value 'localpeer', the URL is: http://localpeer/.