[BlueOnyx:04004] Re: Virtual aliases problem maybe

enid vx enidv11 at gmail.com
Sat Mar 13 07:16:49 -05 2010


For site1

....

<VirtualHost xx.xx.xx.xx:80>
ServerName www.site1.com
ServerAlias site1.com
......

RewriteEngine on
RewriteCond %{HTTP_HOST}                !^xx.xx.xx.xx(:80)?$
RewriteCond %{HTTP_HOST}                !^www.site1.com(:80)?$ [NC]
RewriteRule ^/(.*)                      http://www.site1.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))?
/home/.sites/88/site213/users/$1/web/$3
....

</VirtualHost>
# end of VirtualHost owned section


and for site2


<VirtualHost xx.xx.xx.xx:80>
ServerName www.site2.com
ServerAdmin admin
...

RewriteEngine on
RewriteCond %{HTTP_HOST}                !^xx.xx.xx.xx(:80)?$
RewriteCond %{HTTP_HOST}                !^www.site2.com(:80)?$ [NC]
RewriteRule ^/(.*)                      http://www.site2.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))?
/home/.sites/106/site3/users/$1/web/$3
...

</VirtualHost>
# end of VirtualHost owned section


Where xx.xx.xx.xx -> ip of the server
and site1.com , site2.com the renamed websites.

Thanks,

Enid

On Sat, Mar 13, 2010 at 4:13 PM, Gerald Waugh <gwaugh at raqware.com> wrote:

>
> On Sat, 2010-03-13 at 11:53 +0100, enid vx wrote:
> > I cannot figure this out anymore,
> >
> > in a BQ box when I add a new Virtualsite and the dns records are
> > pointed ok to the site
> > example virtualsite name <www.site1.com>
> > and the CNAME record
> > www.site1.com  IN  CNAME   BQ.domain.com
> >
>  first, do not use cname.
>
> > when I try to open from browser www.site1.com
> > the page redirects to another page www.site2.com
> >
> > I've seen all the aliases of the two sites and all the redirections
> > possible but cannot find anything.
> >
> > Strangely when I open the new virtualsite in an identical BO server
> > (exported/imported from BQ), and point the dns records there, this
> > does not happen.
> >
> > Where can I look to solve this issue , and can you help me about this?
> >
> What do the vhosts file read in the rewrite rules section.
> /etc/httpd/conf/vhosts/site/x
>
> Gerald
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20100313/d21a5bce/attachment.html>


More information about the Blueonyx mailing list