Changes

Jump to navigation Jump to search
43 bytes added ,  11:39, 28 August 2016
m
Line 142: Line 142:  
To create your sub domain (e.g. https://chat.yourserver.com)
 
To create your sub domain (e.g. https://chat.yourserver.com)
 
  db domains set chat.mycompany.local domain Description "RocketChat" Nameservers internet \
 
  db domains set chat.mycompany.local domain Description "RocketChat" Nameservers internet \
  TemplatePath WebAppVirtualHost RequireSSL enabled ProxyPassTarget http://localhost:3000/
+
  TemplatePath WebAppVirtualHost RequireSSL enabled ProxyPassTarget http://localhost:3000/ ProxyPreserveHost yes
 
The 'ProxyPassTarget' property could also point to another host (IP) that has Rocket.Chat installed, e.g. a virtual SME Server on the same LAN. In that case, also LDAP and open/close ports have to be taken into consideration.
 
The 'ProxyPassTarget' property could also point to another host (IP) that has Rocket.Chat installed, e.g. a virtual SME Server on the same LAN. In that case, also LDAP and open/close ports have to be taken into consideration.
 
To expand and activate:
 
To expand and activate:
Line 148: Line 148:     
If your server' default FQDN is already chat.yourserver.com, there is no need to create a new subdomain. Instead of the above command, you can enter the following:
 
If your server' default FQDN is already chat.yourserver.com, there is no need to create a new subdomain. Instead of the above command, you can enter the following:
  db domains setprop chat.yourserver.com TemplatePath WebAppVirtualHost RequireSSL enabled ProxyPassTarget http://localhost:3000/
+
  db domains setprop chat.yourserver.com TemplatePath WebAppVirtualHost RequireSSL enabled ProxyPassTarget http://localhost:3000/ ProxyPreserveHost yes
 
      
To disable the default access on port 3000, for we now access our chat platform via the subdomain, and for security we close the default access method.
 
To disable the default access on port 3000, for we now access our chat platform via the subdomain, and for security we close the default access method.

Navigation menu