<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Running 5208. We have a site with SSL enabled and Web Alias Redirect
    enabled so that site.com is allowed as well as <a class="moz-txt-link-abbreviated" href="http://www.site.com">www.site.com</a>. The
    problem is that regular requests and SSL requests behave
    differently.<br>
    <br>
    When you browse to site.com, you're redirected to <a class="moz-txt-link-abbreviated" href="http://www.site.com">www.site.com</a>.
    That's what we want.<br>
    <br>
    When you browse to <a class="moz-txt-link-freetext" href="https://site.com">https://site.com</a>, you stay at <a class="moz-txt-link-freetext" href="https://site.com">https://site.com</a>.
    We don't want that - we want behavior consistent with the non-secure
    pages.<br>
    <br>
    I looked in the sitex file in /etc/httpd/conf/vhosts and see the
    following:<br>
    <br>
    In the non-secure <VirtualHost <i>[IPAddress]</i>:80>
    section, the following lines appear:<br>
    <br>
    ServerName <a class="moz-txt-link-abbreviated" href="http://www.site.com">www.site.com</a><br>
    ServerAlias site.com<br>
    RewriteEngine on<br>
    RewriteCond %{HTTP_HOST}                !^<i>[IPAddress]</i>(:80)?$<br>
    RewriteCond %{HTTP_HOST}                !^www.site.com(:80)?$ [NC]<br>
    <br>
    RewriteRule ^/(.*)                      <a class="moz-txt-link-freetext" href="http://www.site.com/$1">http://www.site.com/$1</a>
    [L,R=301]<br>
    <br>
    <br>
    While in the secure <VirtualHost *:443> section, these lines
    appear:<br>
    <br>
    ServerName <a class="moz-txt-link-abbreviated" href="http://www.site.com">www.site.com</a><br>
    ServerAlias site.com<br>
    RewriteEngine on<br>
    RewriteCond %{HTTP_HOST}                !^<i>[IPAddress]</i>(:443)?$<br>
    RewriteCond %{HTTP_HOST}                !^www.site.com(:443)?$ [NC]<br>
    <font color="#ff0000">RewriteCond %{HTTP_HOST}               
      !^site.com(:443)?$ [NC]</font><br>
    <br>
    RewriteRule ^/(.*)                      <a class="moz-txt-link-freetext" href="https://www.usms.org/$1">https://www.usms.org/$1</a>
    [L,R=301]<br>
    <br>
    Deleting that red highlighted line and restarting apache makes the
    <a class="moz-txt-link-freetext" href="https://site.com">https://site.com</a> redirection work just like the non-secure version.
    Is this is bug that needs to be fixed in BX? I'm sure that the next
    time I update something, my manually edited file will be overwritten
    with that bad line in it again.<br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jim
</pre>
    <br>
  </body>
</html>