httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Riela" ...@nesys.it>
Subject [users@httpd] Redirect to ssl site
Date Tue, 09 Dec 2003 17:14:40 GMT
Hi folks,

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

It works fine, but I've to implement ssl with qmailadmin.
Then I've added:
Redirect permanent /cgi-bin/qmailadmin
https://www.domain.dom/cgi-bin/qmailadmin
And a virtual host https:
<VirtualHost 192.168.1.11:443>
ServerName www.domain.dom       
ServerAdmin webmaster@domain.dom
Port 443
DocumentRoot /var/www/htdocs/sites/domain.dom        
ScriptAlias /cgi-bin/ "/var/www/htdocs/sites/domain.dom/cgi-bin/"
SSLEngine on
SSLCertificateFile /var/www/htdocs/*/domain.dom.crt
SSLCertificateKeyFile /var/www/htdocs/*/domain.dom.key
ErrorLog logs/domain.dom-error_log
CustomLog logs/domain.dom-access_log combined
   <Directory "/var/www/htdocs/sites/domain.dom/cgi-bin">
               Options ExecCGI -Indexes    
               AllowOverride All
               Order allow,deny
               Allow from all
   </Directory>
</VirtualHost>

That's ok, but i've https://www.domain.dom too, and not only
https://www.domain.dom/cgi-bin/qmailadmin. And if I would add others vh
https?

There's a solution for my problem?
Thanks for support
Regards
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


Mime
View raw message