On Mon, June 18, 2007 4:49 pm, Ken Robinson wrote:
> I'm trying to help my boss solve his rewrite problem. He's trying the
> following code in the config file, but the results are an infinite loop of
> rewrites:
>
>
> <VirtualHost *:7778>
> ServerName virtual1
> Port 80
> ServerAdmin [EMAIL PROTECTED]
> Options +FollowSymLinks
> RewriteEngine On
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^/(.*)$ https://virtual1/$1 [L,R]
>
>
> Is there any way of making this work without specifying a different
> target host?
>

Ken, take a look at this article, it will help you redirect http traffic
to https.

http://rewrite.drbacchus.com/rewritewiki/SSL


Regards,
Tony



---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to