[BlueOnyx:10410] Re: 5108R Web Alias Redirects

Randy Smith forhire at lewiscounty.com
Tue May 1 03:48:27 -05 2012


> > "The imported file did not contain an ssl certificate. Please make sure 
> > the correct file is being imported."
> 
> Was this a certificate that you had exported *through* the GUI before?

Manage Certificate Authority. Single cert (one cert part of the the
gd_bundle). I worked around this issue.
 
> > Still getting the 301 loop with SSL on all the sites except one.
> > Interestingly, looking at the debug revealed that the working site is the
> > last one to load. Coincidence?

I setup a test server today. 

Could it be that mod_perl is jumbling the order of the variables. On the test
box I have three domains. The first one was imported, the second two were
created and use self signed certs. Installed the rewrite update. Site one and
three are 301 looping. Site two works. The only difference is the order of the
debug variables.

RewriteCond %{HTTP_HOST}                !^www.domain2.com(:443)?$ [NC]
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_HOST}                !^192.168.0.2(:443)?$
RewriteRule ^/(.*)                      https://www.domain2.com/$1 [L,R=301]

RewriteRule ^/(.*)                      https://www.domain3.com/$1 [L,R=301]
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^192.168.0.3(:443)?$
RewriteCond %{HTTP_HOST}                !^www.domain3.com(:443)?$ [NC]
RewriteOptions inherit

RewriteRule ^/(.*)                      https://www.domain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST}                !^192.168.0.1(:443)?$
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_HOST}                !^www.domain.com(:443)?$ [NC]

The broken domains have the rewrite at the top, before enabling the engine or
any conditions. Not sure if order matters but that's the only difference I can
see.

Thanks, Randy



More information about the Blueonyx mailing list