You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrea Riela <ml...@nesys.it> on 2003/12/04 13:12:03 UTC

[users@httpd] R: [users@httpd] Cgi-bin and virtual hosts

Ya, I know.

With the default configs, qmailadmin 1.0.30 works fine, no problems. But
I've to do that:
1- change directory for html, lang and images: all in
/var/www/htdocs/qmailadmin
2- use qmailadmin only from specific virtual hosts. To do that, I would
install qmailadmin in a cgi-bin dir in one vh, and then create symlinks for
the vh that use qmailadmin.

This is my config:
./configure
--enable-htmldir=/var/www/htdocs
--enable-htmllibdir=/var/www/htdocs/qmailadmin/
--enable-cgibindir=/var/www/htdocs/sites/nesys.it/cgi-bin
--enable-cgipath=/cgi-bin/qmailadmin
--enable-imageurl=/qmailadmin/images
--enable-imagedir=/var/www/htdocs/qmailadmin/images
--enable-modify-spam=Y
--enable-spam-command="| maildrop /etc/mailfilter"
--enable-domain-autofill=Y

In my httpd.conf, I've added:
In general configuration
------------------------
Alias /qmailadmin/images/ "/var/www/htdocs/qmailadmin/images/"
<Directory "/var/www/htdocs/qmailadmin/images">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny  
    Allow from all    
</Directory>

In the main vh for qmailadmin
-----------------------------
<VirtualHost 192.168.1.11:80>
ServerName www.nesys.it
ServerAdmin webmaster@nesys.it
SSLDisable
Port 80
DocumentRoot /var/www/htdocs/sites/nesys.it
ErrorLog logs/nesys.it-error_log
CustomLog logs/nesys.it-access_log combined
ScriptAlias /cgi-bin/ "/var/www/htdocs/sites/nesys.it/cgi-bin/"
   <Directory "/var/www/htdocs/sites/nesys.it">
               Options -Indexes
               AllowOverride All
               Order allow,deny 
               Allow from all   
   </Directory>
</VirtualHost> 

The problem is: I connect to www.nesys.it/cgi-bin/qmailadmin But when I try
to connect with an account, the message is: Invalid Login
(198)

I've tryed with
<VirtualHost 192.168.1.11:80>
ServerName www.nesys.it
ServerAdmin webmaster@nesys.it
SSLDisable
Port 80
DocumentRoot /var/www/htdocs/sites/nesys.it
ErrorLog logs/nesys.it-error_log
CustomLog logs/nesys.it-access_log combined
ScriptAlias /cgi-bin/ "/var/www/htdocs/sites/nesys.it/cgi-bin/"
   <Directory "/var/www/htdocs/sites/nesys.it">
               Options -Indexes
               AllowOverride All
               Order allow,deny
               Allow from all
   </Directory>
   <Directory "/var/www/htdocs/sites/nesys.it/cgi-bin">
               Options ExecCGI
               AllowOverride All
               Order allow,deny
               Allow from all
   </Directory>
</VirtualHost>

Nothing ... Always invalid user. For all users and all domains. Where is the
problem?

Have you got any advices for me?
Thanks
Andrea



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org