Hi folks,

I would have some virtual hosts with cgi-bin/qmailadmin over ssl (https).
I've tried with rewrite rules, but I think I've made a mistake, it doesn't
work correctly (I've some errors like "could not change directory", or login
problems, or problems to check the assign file).
Without ssl all works fine.

My system: freebsd 4.9 stable. I'm using the freebsd port. Normally I make a
central configuration, with some symlinks to cgi-bin/qmailadmin on my
virtual hosts (+FollowSymLinks).
The same configuration on openbsd 3.3 works correctly, that is probably a
problem with apache with mod_ssl (I use this port: apache 1.3.29 with
mod_ssl 2.8.16) on freebsd system, or with port (?).

this is an example of configuration.
I hope you could help me.
Thanks for your support
regards
Andrea

<VirtualHost 192.168.1.11:80>
ServerName www.nesys.it
ServerAdmin [EMAIL PROTECTED]
SSLDisable
Port 80   
DocumentRoot /usr/local/www/data/sites/nesys.it
ErrorLog /var/log/apache/nesys.it-error_log
CustomLog /var/log/apache/nesys.it-access_log combined
RewriteEngine on
RewriteRule ^/cgi-bin/qmailadmin https://www.nesys.it/cgi-bin/qmailadmin
[R=permanent]
ScriptAlias /cgi-bin/ "/usr/local/www/data/sites/nesys.it/cgi-bin/"
   <Directory "/usr/local/www/data/sites/nesys.it">
               Options -Indexes 
               AllowOverride All
               Order allow,deny
               Allow from all
   </Directory>
   <Directory "/usr/local/www/data/sites/nesys.it/cgi-bin">
               Options ExecCGI -Indexes +FollowSymLinks
               AllowOverride All
               Order allow,deny
               Allow from all
   </Directory>
</VirtualHost>

<VirtualHost 192.168.1.11:443>
ServerName www.nesys.it
ServerAdmin [EMAIL PROTECTED]
Port 443
DocumentRoot /usr/local/www/data/sites/nesys.it
RewriteEngine on
RewriteRule ^/cgi-bin/qmailadmin - [S=1]
RewriteRule ^(.*) http://www.nesys.it/$1 [R=permanent]
ScriptAlias /cgi-bin/ "/usr/local/www/data/sites/nesys.it/cgi-bin/"
SSLEngine on
SSLCertificateFile /usr/local/www/certs/nesys.crt   
SSLCertificateKeyFile /usr/local/www/certs/nesys.key
ErrorLog /var/log/apache/nesys.it-error_log
CustomLog /var/log/apache/nesys.it-access_log combined
   <Directory "/usr/local/www/data/sites/nesys.it/cgi-bin">
               Options ExecCGI -Indexes +FollowSymLinks
               AllowOverride All
               Order allow,deny
               Allow from all
   </Directory>
</VirtualHost>

Reply via email to