Hi,
 
I have been using apache and qmailadmin for some time with virtual domains
 
My config for a virtual domain looks like this
 
<VirtualHost *>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /usr/local/apache/virtual/www.test.com
    ServerName www.test.com
    ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin
    SetEnv QMAILADMIN_TEMPLATEDIR /usr/local/apache/virtual/www.mdlan.co.uk/qmailadmin
    ErrorLog logs/www.test.com_error_log
    CustomLog logs/www.test.com_access_log common
</VirtualHost>
 
As you can see I have created to a alias for the cgi-bin dir to the root cgi-bin in the install directory of apache.
This is where I installed qmailadmin and sqwebmail /usr/local/apache/
 
This has never caused a problem before, however I now have a situation where one of the users wants to run his own cgi scripts (I can't believe this has never come up before). I can't allow the user to put scripts in the /usr/local/apache/cgi-bin script as all the other virtual domains will pick up this script too.
 
To get around this I have setup the virtual doman like this
 
<VirtualHost *>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /usr/local/apache/virtual/test.com
    ServerName www.test.com
    ScriptAlias /cgi-bin/ /usr/local/apache/virtual/www.test.com/cgi-bin/
    SetEnv QMAILADMIN_TEMPLATEDIR /usr/local/apache/virtual/www.test.com/qmailadmin
    ErrorLog logs/www.test.com_error_log
    CustomLog logs/www.test.com_access_log common
</VirtualHost>
 
The problem is how do I give access to qmail admin, and sqwebmail.
 
I have tried copying the qmailadmin and sqwebmail cgi scripts from /usr/local/apache/cgi-bin to /usr/local/apache/virtual/www.test.com/cgi-bin
 
however I get the error warning: file name is symbolic link header.html warning: file name is symbolic link show_login.html warning: file name is symbolic link footer.html
 
How can I setup virtual domains in this way.
 
Where do I get the footer.html and where do I put it ? is this a problem to do it this way ? is there a better way ??
 
I have searched the archives and only found a few posts, some of them by myself a while ago.
 
Thanks inadvance.
 
Matt.
 


Reply via email to