<br><br><div class="gmail_quote">On Sat, Mar 13, 2010 at 1:16 PM, enid vx <span dir="ltr"><<a href="mailto:enidv11@gmail.com">enidv11@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For site1<br><br>....<br><br><VirtualHost xx.xx.xx.xx:80><br>ServerName <a href="http://www.site1.com" target="_blank">www.site1.com</a><br>ServerAlias <a href="http://site1.com" target="_blank">site1.com</a><br>......<br>
<br>RewriteEngine on<br>RewriteCond %{HTTP_HOST} !^xx.xx.xx.xx(:80)?$<br>
RewriteCond %{HTTP_HOST} !^<a href="http://www.site1.com" target="_blank">www.site1.com</a>(:80)?$ [NC]<br>RewriteRule ^/(.*) <a href="http://www.site1.com/$1" target="_blank">http://www.site1.com/$1</a> [L,R]<br>
RewriteOptions inherit<br>
AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/88/site213/users/$1/web/$3<br>....<br><br></VirtualHost><br># end of VirtualHost owned section<br><br><br>and for site2<br><br><br><VirtualHost xx.xx.xx.xx:80><br>
ServerName <a href="http://www.site2.com" target="_blank">www.site2.com</a><br>ServerAdmin admin<br>...<br><br>RewriteEngine on<br>RewriteCond %{HTTP_HOST} !^xx.xx.xx.xx(:80)?$<br>RewriteCond %{HTTP_HOST} !^<a href="http://www.site2.com" target="_blank">www.site2.com</a>(:80)?$ [NC]<br>
RewriteRule ^/(.*) <a href="http://www.site2.com/$1" target="_blank">http://www.site2.com/$1</a> [L,R]<br>RewriteOptions inherit<br>AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/106/site3/users/$1/web/$3<br>
...<br>
<br></VirtualHost><br># end of VirtualHost owned section<br><br><br>Where xx.xx.xx.xx -> ip of the server<br>and <a href="http://site1.com" target="_blank">site1.com</a> , <a href="http://site2.com" target="_blank">site2.com</a> the renamed websites.<br>
<br>Thanks,<br><font color="#888888"><br>Enid</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Mar 13, 2010 at 4:13 PM, Gerald Waugh <span dir="ltr"><<a href="mailto:gwaugh@raqware.com" target="_blank">gwaugh@raqware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
On Sat, 2010-03-13 at 11:53 +0100, enid vx wrote:<br>
> I cannot figure this out anymore,<br>
><br>
> in a BQ box when I add a new Virtualsite and the dns records are<br>
> pointed ok to the site<br>
> example virtualsite name <<a href="http://www.site1.com" target="_blank">www.site1.com</a>><br>
> and the CNAME record<br>
> <a href="http://www.site1.com" target="_blank">www.site1.com</a> IN CNAME <a href="http://BQ.domain.com" target="_blank">BQ.domain.com</a><br>
><br>
</div> first, do not use cname.<br></blockquote></div></div></div></blockquote><div><br> </div><div><br>Sorry , I missed this quote. Should I use an A record instead?<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
> when I try to open from browser <a href="http://www.site1.com" target="_blank">www.site1.com</a><br>
> the page redirects to another page <a href="http://www.site2.com" target="_blank">www.site2.com</a><br>
><br>
> I've seen all the aliases of the two sites and all the redirections<br>
> possible but cannot find anything.<br>
><br>
> Strangely when I open the new virtualsite in an identical BO server<br>
> (exported/imported from BQ), and point the dns records there, this<br>
> does not happen.<br>
><br>
> Where can I look to solve this issue , and can you help me about this?<br>
><br>
</div>What do the vhosts file read in the rewrite rules section.<br>
/etc/httpd/conf/vhosts/site/x<br>
<br>
Gerald<br>
<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@blueonyx.it" target="_blank">Blueonyx@blueonyx.it</a><br>
<a href="http://www.blueonyx.it/mailman/listinfo/blueonyx" target="_blank">http://www.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>