HTTP to HTTPS redirect on virtual host on port 8080

"Christopher McClan" <[email protected]>
Newsgroups gmane.comp.apache.mod-ssl.user
Message-ID <[email protected]>
Hi,

I'm currently running an Apache web server with Mod_SSL, and have the
following virtual host statement:

<VirtualHost mywebserver:8080>
  <IfModule mod_ssl.c>
      SSLEngine on
      SSLCertificateFile      /xx/xxx/xxx.crt
      SSLCertificateKeyFile   /xx/xxx/xxx.key
      SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
   </IfModule>
   ServerName mywebserver
   DocumentRoot /xxx/xxx/xxx/xxx
   <Directory /xxx/xxx/xxx/xxx>
     Options Indexes FollowSymLinks MultiViews +ExecCGI
     Allow from all
   </Directory>
</VirtualHost>

If I connect using http, I get an Apache error stating that this an SSL
enabled server, and I should use https.

My question is, how do I get it to redirect from http to https? This seems
easy enough if you aren't running a virtual server on a specific port and
just want to redirect to https for certain directories, but in this
configuration I've not been able to achieve this.

Thanks,

CIMLinux

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [email protected]
Automated List Manager                            [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.