[BlueOnyx:06124] Re: rewrite rule
Steffan
general at ziggo.nl
Wed Dec 15 07:44:02 -05 2010
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: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
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
taco at blueonyx.it
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: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
> 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
> taco at blueonyx.it
>
>
> 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
>> Blueonyx at blueonyx.it
>> http://www.blueonyx.it/mailman/listinfo/blueonyx
>
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx
More information about the Blueonyx
mailing list