xare wrote:
So I see that the directives defined on VirtualHost seem to have
higher priority than the general ones. is there a way to change this?
Sure you can-- but it means using two different IP addresses (or if you
are using NameVirtualHosts, two different names). It's not clear to me
why you'd want to do it, though.
If you're only going to have one IP address (and web site) on this
server, you can do one of several things:
1) Eliminate the VirtualHost section entirely and do all of your config
in the "main" server area.
2) or, Change the scriptAlias for the VirtualHost directory to
/var/www/cgi-bin
3) or, Install qmailadmin in /home/antxeta/cgi-bin/ instead of
/var/www/cgi-bin
You choose.
Ok I see now I face an apache problem. I put it here just to know if
someone can help me if not I'll put the question elsewhere.
I have defined a virtual host in httpd.conf that says.
<VirtualHost 85.31.144.205:80 <http://85.31.144.205:80>>
ServerAdmin [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
DocumentRoot /home/antxeta/www
SuexecUserGroup antxeta users
ServerName www.antxetairratia.com <http://www.antxetairratia.com>
ServerAlias antxetairratia.com <http://antxetairratia.com>
CustomLog logs/antxeta-access_log combined
ScriptAlias /cgi-bin/ /home/antxeta/cgi-bin/
</VirtualHost>
Before that I have defined the following overall parameters
ServerName 85.31.144.205:80 <http://85.31.144.205:80>
DocumentRoot "/var/www/html"
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
on the error-log I find the following
[Wed May 31 00:22:07 2006] [error] [client 83.46.120.82
<http://83.46.120.82>] script not found or unable to stat:
/home/antxeta/cgi-bin/qmailadmin
Bye