Hi Steffan, You are correct.
Looking at the changelog: * Sat Jul 03 2010 Michael Stauber <mstau...@…> 1.2.0-0BX06 - Added RewriteCond? for webAliases to glue/conf/Apache.conf, glue/handlers/virtual_host.pl and glue/schemas/apache.schema This is something Michael introduced. We will have to wait for Michael's reply. I personally want to make this a switch in the UI (which is disabled by default), so that the previous way of redirection is preserved. Funny thing is that on a new create, the rewrite rules are not added, which is also not consistent. I will fix this as soon as I have seen a response from Michael. With regards, Taco Scargo [email protected] On 15 dec 2010, at 13:44, Steffan wrote: > I think the problem is > /usr/sausalito/handlers/base/apache/virtual_host.pl > > my $aliasRewrite, $aliasRewriteSSL; > if ($vhost->{webAliases}) { > my @webAliases = $cce->scalar_to_array($vhost->{webAliases}); > foreach my $alias (@webAliases) { > $aliasRewrite .= "RewriteCond %{HTTP_HOST} > !^$alias(:80)?\$ [NC]\n"; > $aliasRewriteSSL .= "RewriteCond %{HTTP_HOST} > !^$alias(:443)?\$ [NC]\n"; > } > } > > Steffan > > -----Oorspronkelijk bericht----- > Van: [email protected] [mailto:[email protected]] > Namens Taco Scargo > Verzonden: woensdag 15 december 2010 12:20 > Aan: BlueOnyx General Mailing List > Onderwerp: [BlueOnyx:06122] Re: rewrite rule > > Tjerk, > > I just created a new site on a BlueOnyx machine and added some aliases, but > on my box it just gets redirected to the main hostname, so I really don't > know what is happening on your server. Have you installed any third-party > packages or have you modified anything by yourself ? > > In other words: I am unable to reproduce what you are seeing. > > Maybe you can post the site configuration file (located in > /etc/httpd/conf/vhosts/siteXX > > This is how a standard rewriteblock should look like in this file: > > RewriteEngine on > RewriteCond %{HTTP_HOST} !^192.168.1.11(:80)?$ > RewriteCond %{HTTP_HOST} !^hostname.domainname.net(:80)?$ > [NC] > > RewriteRule ^/(.*) http://hostname.domainname.net/$1 > [L,R=301] > RewriteOptions inherit > > With regards, > > Taco Scargo > [email protected] > > > On 15 dec 2010, at 09:04, Tjerk Hacquebord wrote: > >> Original question by Steffan at Wednesday, October 06, 2010 2:59 AM: >> "I noticed that a update changed the rewriterule of the vsites New created >> sites are now serving with and without www without redirecting to the www >> Also subdomains arnt redirected anymore." >> >> After that many replied that this 'feature' was not anything they would > like >> to have enabled by default. >> >> So I think you are going to make a lot of people happy :) >> Thanks already! >> >> >> Tjerk >> >> >> -----Oorspronkelijk bericht----- >> Van: [email protected] [mailto:[email protected]] >> Namens Taco Scargo >> Verzonden: woensdag 15 december 2010 0:45 >> Aan: BlueOnyx General Mailing List >> Onderwerp: [BlueOnyx:06117] Re: rewrite rule >> >> I have troubles finding the original e-mail of this thread, but if this >> rewriting is about rewriting the hostname in case you access an webhost >> alias hostname, I am working on a GUI feature to disable the rewriting. >> >> With regards, >> >> Taco Scargo >> [email protected] >> >> >> On 14 dec 2010, at 22:10, Stephanie Sullivan wrote: >> >>> Yes, Please return the prior DEFAULT behavior for URL rewriting. I'm very >>> happy to have the ability to change this as an option on the site control >>> panel. Changing the default messes up a bunch of things. >>> >>> Thanks, >>> -Stephanie >>> >>> >>> _______________________________________________ >>> Blueonyx mailing list >>> [email protected] >>> http://www.blueonyx.it/mailman/listinfo/blueonyx >> >> >> _______________________________________________ >> Blueonyx mailing list >> [email protected] >> http://www.blueonyx.it/mailman/listinfo/blueonyx >> >> _______________________________________________ >> Blueonyx mailing list >> [email protected] >> http://www.blueonyx.it/mailman/listinfo/blueonyx > > > _______________________________________________ > Blueonyx mailing list > [email protected] > http://www.blueonyx.it/mailman/listinfo/blueonyx > > _______________________________________________ > Blueonyx mailing list > [email protected] > http://www.blueonyx.it/mailman/listinfo/blueonyx _______________________________________________ Blueonyx mailing list [email protected] http://www.blueonyx.it/mailman/listinfo/blueonyx
