Submitted by izoox on Mon, 05/11/2009 - 21:34
I need to change the proxy url on all subsites under a parent site. There are over 200 subsites in this setup, is there a way to do that for all subsites under a parent site?
Status:
Closed (fixed)
Comments
Submitted by izoox on Tue, 08/18/2009 - 02:54 Comment #3
I need the comments posted to this ticket from the old system. Or at least the final resolution comment.
Submitted by andreychek on Tue, 08/18/2009 - 08:12 Comment #4
Howdy -- while I don't know how to fix the permissions on the comments, Jamie's reply that fixed the issue was the following:
The best way to do this would be from the command line, with a command like :
for dom in
virtualmin list-domains --user OWNER --with-feature parent --name-only
; do virtualmin modify-web --domain $dom --proxy http://proxydestination.com/ doneReplace OWNER in the script above with the administration login for the parent site.
Submitted by izoox on Tue, 08/18/2009 - 11:40 Comment #5
When I run that it seems to be just using the actual command as a set of strings, rather than using what was returned by the command.
Submitted by izoox on Tue, 08/18/2009 - 11:45 Comment #6
nevermind, I figured you have to put the command in $() for is to use the output in the loop. Thanks!