httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] rewrite module question
Date Wed, 15 Oct 2003 06:39:57 GMT
patrick kuah wrote:
> I need to do a URL redirection (http to https). Example,
http://www.foo.bar
> to https://www.foo.bar
> How am i going to do that???
> Currently, my rewrite module config are...

You do not use mod_rewrite. Instead you do:

    <VirtualHost 1.2.3.4:80>
        ServerName www.foo.bar
        Redirect / https://www.foo.bar/
    </VirtualHost>
    <VirtualHost 1.2.3.4:443>
        ServerName www.foo.bar
        ...
    </VirtualHost>

Regards,
Robert Andersson


---------------------------------------------------------------------
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