Koozali.org: home of the SME Server

[Solved] Is setting ProxyPass from the command line reversible?

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
[Solved] Is setting ProxyPass from the command line reversible?
« 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?
« Last Edit: December 09, 2008, 07:53:40 PM by LANMonkey »

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Is setting ProxyPass from the command line reversible?
« Reply #1 on: December 08, 2008, 09:16:40 PM »
db [database] delete [key]
db [database] delprop [key] [setting]

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Is setting ProxyPass from the command line reversible?
« Reply #2 on: December 08, 2008, 09:28:12 PM »
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.

Offline e[nt]e

  • *
  • 172
  • +0/-0
Re: Is setting ProxyPass from the command line reversible?
« Reply #3 on: December 08, 2008, 09:41:33 PM »
[...]
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.
1984 wasn't meant to be a manual.

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Is setting ProxyPass from the command line reversible?
« Reply #4 on: December 08, 2008, 10:54:05 PM »
From the FAQ prototype:

Code: [Select]
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

Code: [Select]
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?

Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Is setting ProxyPass from the command line reversible?
« Reply #5 on: December 09, 2008, 01:41:03 AM »
Code: [Select]
db domains delete proxypassdomain.comWill 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:

Code: [Select]
signal-event domain-delete proxypassdomain.com
Note: Wiki updated.
« Last Edit: December 09, 2008, 01:47:16 AM by pfloor »
In life, you must either "Push, Pull or Get out of the way!"

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Is setting ProxyPass from the command line reversible?
« Reply #6 on: December 09, 2008, 07:52:41 PM »
Thank you pfloor, that worked for me.