While you could do as Fletch implied, and look up the virtual host in the environment; another way is to module-lize your CGI code, and invoke it with a different script for each vhost. The script would just invoke some routine in the module, passing it whatever customized parameters are needed for that vhost. This is easier if you have separate document-root directories for each vhost, but a common module directory.
In reply to Re: Telling different virtual hosts apart
by sasdrtx
in thread Telling different virtual hosts apart
by ayapejian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |