aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/RegionApplicationBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application/RegionApplicationBase.cs')
-rw-r--r--OpenSim/Region/Application/RegionApplicationBase.cs38
1 files changed, 25 insertions, 13 deletions
diff --git a/OpenSim/Region/Application/RegionApplicationBase.cs b/OpenSim/Region/Application/RegionApplicationBase.cs
index 08c8579..83a9fff 100644
--- a/OpenSim/Region/Application/RegionApplicationBase.cs
+++ b/OpenSim/Region/Application/RegionApplicationBase.cs
@@ -57,9 +57,9 @@ namespace OpenSim
57 public NetworkServersInfo NetServersInfo { get { return m_networkServersInfo; } } 57 public NetworkServersInfo NetServersInfo { get { return m_networkServersInfo; } }
58 public ISimulationDataService SimulationDataService { get { return m_simulationDataService; } } 58 public ISimulationDataService SimulationDataService { get { return m_simulationDataService; } }
59 public IEstateDataService EstateDataService { get { return m_estateDataService; } } 59 public IEstateDataService EstateDataService { get { return m_estateDataService; } }
60 60
61 protected abstract void Initialize(); 61 protected abstract void Initialize();
62 62
63 protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager); 63 protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager);
64 64
65 protected override void StartupSpecific() 65 protected override void StartupSpecific()
@@ -68,11 +68,11 @@ namespace OpenSim
68 68
69 Initialize(); 69 Initialize();
70 70
71 m_httpServer 71 m_httpServer
72 = new BaseHttpServer( 72 = new BaseHttpServer(
73 m_httpServerPort, m_networkServersInfo.HttpUsesSSL, m_networkServersInfo.httpSSLPort, 73 m_httpServerPort, m_networkServersInfo.HttpUsesSSL, m_networkServersInfo.httpSSLPort,
74 m_networkServersInfo.HttpSSLCN); 74 m_networkServersInfo.HttpSSLCN);
75 75
76 if (m_networkServersInfo.HttpUsesSSL && (m_networkServersInfo.HttpListenerPort == m_networkServersInfo.httpSSLPort)) 76 if (m_networkServersInfo.HttpUsesSSL && (m_networkServersInfo.HttpListenerPort == m_networkServersInfo.httpSSLPort))
77 { 77 {
78 m_log.Error("[REGION SERVER]: HTTP Server config failed. HTTP Server and HTTPS server must be on different ports"); 78 m_log.Error("[REGION SERVER]: HTTP Server config failed. HTTP Server and HTTPS server must be on different ports");
@@ -87,17 +87,29 @@ namespace OpenSim
87 // "OOB" Server 87 // "OOB" Server
88 if (m_networkServersInfo.ssl_listener) 88 if (m_networkServersInfo.ssl_listener)
89 { 89 {
90 BaseHttpServer server = new BaseHttpServer( 90 if (!m_networkServersInfo.ssl_external)
91 m_networkServersInfo.https_port, m_networkServersInfo.ssl_listener, m_networkServersInfo.cert_path, 91 {
92 m_networkServersInfo.cert_pass); 92 BaseHttpServer server = new BaseHttpServer(
93 m_networkServersInfo.https_port, m_networkServersInfo.ssl_listener, m_networkServersInfo.cert_path,
94 m_networkServersInfo.cert_pass);
93 95
94 m_log.InfoFormat("[REGION SERVER]: Starting HTTPS server on port {0}", server.Port); 96 m_log.InfoFormat("[REGION SERVER]: Starting HTTPS server on port {0}", server.Port);
95 MainServer.AddHttpServer(server); 97 MainServer.AddHttpServer(server);
96 server.Start(); 98 server.Start();
99 }
100 else
101 {
102 BaseHttpServer server = new BaseHttpServer(
103 m_networkServersInfo.https_port);
104
105 m_log.InfoFormat("[REGION SERVER]: Starting HTTP server on port {0} for external HTTPS", server.Port);
106 MainServer.AddHttpServer(server);
107 server.Start();
108 }
97 } 109 }
98 110
99 base.StartupSpecific(); 111 base.StartupSpecific();
100 } 112 }
101 113
102 } 114 }
103} \ No newline at end of file 115}