you could configure one SSL-Site and write a Redirector with mod_rewrite
something like
rewriteCond %{REQUEST_URI} ^(\w+\.[\w-]+.\w+)$ [NC,OR]
...
rewriteRule ^/(.*) http://%1/$1
tmueko
Am 27.10.2006 um 08:23 schrieb Jes Kasper Klittum:
> Has anyone got an idea about how to get my server to listen on port
> 443 for preview addresses, without having to do the trick below?
>
> Jes
>
> Jes Kasper Klittum wrote:
>> Is there any way to start SSL on the main server, instead of just
>> on sites? I would like to be able to use https://servername.com/
>> www.somedomain.com/somefile and have this SSL encrypted with the
>> SSL cert that I imported in the admin - however, the server is not
>> listening on port 443, so this is not possible, Only way I have
>> been able to do this was:
>> 1) Edit /usr/sausalito/handlers/base/vsite/unique.pl to make sure
>> that I am able to add a site with the same name as the server.
>> 2) Import SSL cert on newly created site, and enable SSL (now port
>> 443 is active).
>> 3) Edit /etc/httpd/conf/httpd.conf and uncomment the ServerName
>> variable and put in the same name as the newly created site.
>> Now SSL is available for https://servername.com/www.somedomain.com/
>> somefil. but it seems to be an ugly hack.
>> /Jes
>
>
--
kommunity GmbH & Co.KG
Tom MÍler-Kortkamp
Netzwerke & Internet
Goseriede 4
D-30159 Hannover
Phone +49 (0)5 11 - 80 72 58 0
Fax +49 (0)5 11 - 80 72 58 10
http://www.kommunity.net