Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: LANMonkey on December 08, 2008, 07:48:29 PM
-
I am interested in applying ProxyPass to some servers on my LAN,
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
This is setup on the command line and cannot be administered from server-manager, even though the results are viewable in the domains panel.
If I wish to remove a server from ProxyPass, how do I do that? How do you reverse the commands provided in that FAQ section?
-
db [database] delete [key]
db [database] delprop [key] [setting]
-
What do I substitute for the bracketed items?
Is there documentation somewhere to help me figure out these "db" commands? Nothing comes up from "man" on the command line.
-
[...]
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
[...]
How do you reverse the commands provided in that FAQ section?
db [database] delete [key]
db [database] delprop [key] [setting]
Well, delete will reverse the function of set and delprop the settings of setprop.
So you have to substitute the same as before.
-
From the FAQ prototype:
db domains set proxypassdomain.com domain
db domains setprop proxypassdomain.com Nameservers internet
db domains setprop proxypassdomain.com ProxyPassTarget http://xxx.xxx.xxx.xxx/
db domains setprop proxypassdomain.com TemplatePath ProxyPassVirtualHosts
signal-event domain-create proxypassdomain.com
db [database] delete [key]
db [database] delprop [key] [setting]
So [dababase] becomes "domains" and [key] becomes "proxypassdomain.com"? What about [setting]?
Could somebody just post the code to reverse the provided prototype above?
Is there no documentation for these commands?
-
db domains delete proxypassdomain.com
Will delete the entire key including all settings. This is all you need to do to remove everything for "proxypassdomain.com" from the domains database.
You will then need to delete all the rest of the domain related settings, expand templates and restart the necessary services. This is done all automatically for you with:
signal-event domain-delete proxypassdomain.com
Note: Wiki updated.
-
Thank you pfloor, that worked for me.