http://qs321.pair.com?node_id=116161


in reply to Running Perl scripts from a single CGI-BIN, on a multiple-virtual hosting server

I do something similar. It's currently implemented with IIS/SqlServer, but should work in *nix land as well.

The scripts use the name of the virtual host as an index to a database table which specifies per-site options, including style sheet names, logo graphics, etc. This, combined with the use of HTML::Template, allows customization of look-and-feel, as well as a few functional differences in the various sites, while maintaining a single codebase.

Of course, you have to have a database available...

  • Comment on Re: Running Perl scripts from a single CGI-BIN, on a multiple-virtual hosting server