[BlueOnyx:06123] Re: rewrite rule

Tjerk Hacquebord lists at hqmatics.nl
Wed Dec 15 06:55:08 -05 2010


It seems to happen when you change something on the webaliases page. Just
have a look at all the posts on this subject. Many people replied that
they've seen this happen and they do not like it.
Thanks for looking at it.

Here what a vhost file looks like at that point:

<VirtualHost a.b.c.d:80>
ServerName www.sitename.com
ServerAlias sitename.com www.aliasname1.com www.aliasname2.com
ServerAdmin admin
DocumentRoot /home/.sites/85/site23/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^83.98.206.252(:80)?$
RewriteCond %{HTTP_HOST}                !^www.sitename.com(:80)?$ [NC]
RewriteCond %{HTTP_HOST}                !^sitename.com(:80)?$ [NC]
RewriteCond %{HTTP_HOST}                !^www.aliasname1.com(:80)?$ [NC]
RewriteCond %{HTTP_HOST}                !^www.aliasname2.com(:80)?$ [NC]
...

RewriteRule ^/(.*)                      http://www.sitename.com/$1 [L,R=301]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))?
/home/.sites/85/site23/users/$1/web/$3
Include /etc/httpd/conf/vhosts/site23.include
# BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl

....
</VirtualHost>

I have some Solarspeed packages, PHP, AV-SPAM.



Tjerk


-----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