I don't think that you need two Scalr Applications for this. As far as I can tell in Scalr: Application == domain
If you add domain.tld as an application Scalr should automatically create DNS pointers for www.domain.tld assuming you have a www Role, or have clicked the "assign www pointer to this role" in your farm config. You can also just edit the DNS zone directly to set your www pointer to whatever you want. You are correct that you need a rewrite rule or something to get people switched over from domain.tld to www.domain.tld. I've just been messing with this for some of our domains. It's too bad that you can't have a CNAME for a 'root' domain pointer. When doing load balanced web front ends that causes you to need an Elastic IP on 1 machine that you wouldn't need otherwise. Oh well. Jeremy On Aug 25, 11:03 am, Arie Fishler <[email protected]> wrote: > why don't you direct your users tohttp://apps.facebook.com/swissmenuo? > > 2009/8/25 Frédéric Sidler <[email protected]> > > > with menuo.ch yes, this will never work because facebook expect the > > request to come fromwww.menuo.ch > > this is why you need to redirect all menuo.ch requests towww.menuo.chrequest > > > and the only way to allow your menuo user to access the site with menuo.chor > >www.menuo.chwas to create 2 applications and redirect the menuo.ch to > >www.menuo.ch > > > if any of you has a better approach, I take. > > > On Tue, Aug 25, 2009 at 5:27 PM, Arie Fishler <[email protected]> wrote: > > >> something not working right...when I click the big "Get..." button I login > >> with password and just go to my home page > > >> 2009/8/25 Frédéric Sidler <[email protected]> > > >>> tryhttp://menuo.chfirst andhttp://www.menuo.chthen and you will get > >>> what I mean ;-) > > >>> On Tue, Aug 25, 2009 at 5:01 PM, Arie Fishler <[email protected]>wrote: > > >>>> is it a connect app or just an app within facebook? - cause in facebook > >>>> apps are accessed via a facebook url....that's what I do not get.... > > >>>> 2009/8/25 Frédéric Sidler <[email protected]> > > >>>>> allow user to access your website underhttp://domain.tldand redirect > >>>>> it tohttp://www.domain.tld > >>>>> because a facebook application cannot be redirected to your domain if > >>>>> the domain was not informed correctly (only one option) > > >>>>> On Tue, Aug 25, 2009 at 4:51 PM, Arie Fishler <[email protected]>wrote: > > >>>>>> Hi, > > >>>>>> Did not understand what was the exact problem you were offering a > >>>>>> solution to. :) > > >>>>>> 2009/8/25 Frédéric Sidler <[email protected]> > > >>>>>> Hello, > > >>>>>>> I have a domain name where the www subdomain is very important. This > >>>>>>> is very important because this is Facebook application and Facebook > >>>>>>> requires > >>>>>>> a talk back URL. This talk back URL can be either something like > >>>>>>>www.domain.tldor domain.tld, not both. > > >>>>>>> So I tried to figure out what was the best practice to do it with > >>>>>>> scalr. Here is my recipe. > > >>>>>>> Two applications, awww.domain.tldapplication and a domain.tld > >>>>>>> application. Because you want your user to be able to access your > >>>>>>> site with > >>>>>>> domain.tld and not only withwww.domain.tld > >>>>>>> A rewrite rule and a rewrite condition for your domain.tld. You need > >>>>>>> to activate the mod_rewrite first with this command > >>>>>>> a2enmod rewrite > >>>>>>> and force-reload your webserver > >>>>>>> You can put this commands either in you Apache configuration file or > >>>>>>> in a .htaccess at the root level of your scripts > >>>>>>> RewriteEngine on > >>>>>>> RewriteCond %{HTTP_HOST} ^domain\.tld$ [NC] > >>>>>>> RewriteRule ^(.*)$http://www.domain.tld$1[R=301,L] > > >>>>>>> Maybe you have an alternative to this solution. Here was mine ;-) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
