Setting VM to assign "Any" to port and address

Have searched the forums as well as have poured over the config screens and docs, and am not getting my head around this… I know it will end up being something simple.

VirtuaMin is running perfectly. Fantastic application.

When I Add a New Virtual Server, it ends up assigning a static IP and port 80 to the Virtual Host in Apache. Am trying to find the settings to assign "any" and "any" to the Virtual Host in Apache.

Help anyone?

tx

You don’t want to do that. Trust me. :wink:

OK, I should be less glib. More on the subject:

http://www.virtualmin.com/documentation/id,troubleshooting_common_problems/#the_wrong_site_shows_up

I did exactly as you recommended. It works perfectly. It is important to listen I would say, to those who know what they are doing… I did, and things work. Pretty cool…

On to next items.

Another question if I can:

You indicated that the VM Pro can handle Gallery2 or G2 via built scripts. Say I have a skeleotn site, or templated site, where I have crafted a configuration with themes, usernames, etc… all to my liking. Am I able to create a carbon copy of this "template" using VM Pro, but assigning new domain name, and all the associated info?

Or… I wrote some simple scripts that do this now. I back up the .sql data, copy the G2 filesystem to the new Virtual User, import the .sql file into the newly created database, set permissions, and all works fine. I jsut need to be able to pass one variable to the script to make it all work.

A second question would be, can I utilize my simple script in the VM version, or do I need to VM Pro version to run and accept the passing of this single variable to the script? My pursuit of course is to purchase a site license for a client and go that route regardless, but just wondered.

Or a third question… is there another way you would come at this to create a Virtual User and carbon copy a G2 site that has been tweaked up to taste?

Everything so far is working to a T. VirtualMin is an excellent set of applications.

tx

You indicated that the VM Pro can handle Gallery2 or G2 via built scripts. Say I have a skeleotn site, or templated site, where I have crafted a configuration with themes, usernames, etc... all to my liking. Am I able to create a carbon copy of this "template" using VM Pro, but assigning new domain name, and all the associated info?

In this case, you’d probably want to have this stuff in the skeleton directory rather than using Install Scripts for the installation. You can use variable substitution to modify the contents of the directory, if needed.

The only negative to doing this would be that Virtualmin couldn’t automate your Gallery upgrades. If installed via Install Scripts, you get a bulk-update form that’ll upgrade all of your virtual servers gallery instance (or some selection of them).

So, let me just explain the "recommended path", and then point out the couple of potential flaws:

Virtualmin Professional Install Scripts can be specified within Server Templates, so a new virtual server can automatically scripts installed during creation.

However, since you have some customizations, you would need to either do some post-processing (to modify the configuration/templates/whatever) in a post creation script (which can also be called automatically on creation), or fork your own version of the gallery install script that does the things you want automatically (maybe just downloading the script from an alternate source so the tarball contains all of your changes). It depends on how dramatic the changes are…but the first one is probably the nicest, since you wouldn’t need to update a forked install script.

A second question would be, can I utilize my simple script in the VM version, or do I need to VM Pro version to run and accept the passing of this single variable to the script? My pursuit of course is to purchase a site license for a client and go that route regardless, but just wondered.

Of course. Any kind of script can be executed automatically after creation of a virtual server.

Or a third question... is there another way you would come at this to create a Virtual User and carbon copy a G2 site that has been tweaked up to taste?

Just the skel method, or automatic Install Scripts plus a post-processing script. Depends on how heavily things are tweaked.

Hello,

The ‘client’ accepted the require and he was in process of registering for VirtualMin earlier today. Sooo, thank you for your lengthy detailed explanation, and it resulted in a registration. I anticipate more coming…

tx, drh