OK Robin, thx very much for your long text and your patience. I think I actually most of what you said already.
The thing that confused me, and I still think it is confusing in the doc is the following. As stated in the first sentence of my first message, I am trying to setup an APE server one one computer, and a web server on another one. But the doc is assuming (as you did, and as everyone is doing it seems) that the Apache server and the APE server are on the same IP. And in my case, as I understand, there is indeed absolutely no need to add ape.mydomain.com and *.ape.mydomain.com to a virtual host because, noone will ever reach apache when looking for ape.mydomain.com. 1) Am I right? 2) Secondly, your explanation about ports made me think a little bit more. Tell me if I am wrong. Let's assume everything is on the same IP for now. Someone asking for ape.mydomain.com will first go through Apache (who will deal with it because of the Serveralias thing) and then Apache will pass it to the APE via port 6969. This may be a completely stupid explanation. I am not really happy with it. Tell me if this guess is right or wrong. As you probably understand, I am still trying to understand why we need the virtual host for *.ape and *.ape. and what would happen if we did not have it. Your sentence: "most likely you wont even need to configure apache" is only adding more fuel on the same fire :) Thx again. Nicolas. On 22 sep, 09:02, Ruben Decleyn <[email protected]> wrote: > I think you still got it mixed up, > let me explain, don't pin this on 100% correct, i just wonna try to explain > it simple > > DNS only translates domain names into ip's > > so if you point ape.mydomain.com to 10.1.1.15 then all people requesting a > page will go to the machine with that ip > if you run apache and ape on your machine with the standard settings they > will reach apache on ape.mydomain.com, mydomain,com and > anything.mydomain.com > to reach ape they will go to ape.mydomain.com:6969, mydomain.com:6969, > anything.mydomain.com:6969 > > dns doesn't make someone go to apache or to ape server, it just routes the > ip to the correct machine > the machine then handles the request depending on the port, each deamon > (process on the server sorta speak) runs on its own port > apache runs on port 80 by default, when you type in a domain name in your > browser your broser will try standard on port 80, as it is the standard port > when you try the /Tools/Check page it will load the page in apache and a > javascript part will make a request on port 6969 to contact the ape deamon > > ape IN A x.x.x.x ; The IP address of your APE server > *.ape IN CNAME ape > > you need to replace x.x.x.x by the ip of your machine that runs the ape > process/deamon, in most cases and probable your case too, it's the same > machine as your machine that runs apache, if you set this A and CNAME > records in your dns zone it will just point it to the ip and not to ape or > apache as explained above, > you still need to configure apache and ape to handle the requests, most > likely you wont even need to configure apache > > I hope this helps, its not that hard but you need to understand stuff like > this before you even try to run your own server. > > Kind Regards. > Ruben Decleyn > > On Tue, Sep 21, 2010 at 8:43 PM, Nicolas <[email protected]> wrote: > > I understand what you mean. It makes sense to me. Thx. > > > However, unfortunately, I am afraid that I understand the APE > > architecture yet. > > > Tell me where I am wrong: > > > If I do > > > ape IN A x.x.x.x ; The IP address of your APE server > > *.ape IN CNAME ape > > > on my OVH DNS Zone, then no request to ape.mydomain.com will ever > > reach my web server. It will reach the APE server, right? > > > On Sep 21, 7:07 pm, Ruben Decleyn <[email protected]> wrote: > > > a ServerAlias is just an alias > > > > so mydomain.com/test.txt will also exists for ape.mydomain.com/test.txt > > > > dns is all about routing and ip's, so to wich server to go to > > > apache is how it gets handled on the server once the request gets there > > > > if you only have dns, the server will do nothing with it > > > if you only have apache, well no1 will ever find the server with that > > domain > > > so you need both > > > > Kind Regards. > > > Ruben Decleyn > > > > On Tue, Sep 21, 2010 at 6:30 PM, Nicolas <[email protected]> > > wrote: > > > > Hello, > > > > > I am trying to setup an APE server one one computer, and a web server > > > > on another one. > > > > > I registered a domain with OVH, let's call it mydomain.com. > > > > > I installed an apache server on a dedicated server (fixed ip) and put > > > > this fixed ip as the target of mydomain.com (A). > > > > > It works fine so far. Both mydomain.com andwww.mydomain.comshowwhat > > > > is on the Apache server. > > > > > I am however getting confused for the rest. > > > > > 1) The doc says that I should do > > > > ape IN A x.x.x.x ; The IP address of your APE server > > > > *.ape IN CNAME ape > > > > > If I go again to OVH DNS ZONE, it seems I can indeed do that. > > > > > 2) The doc also says that I should add to my virtual host the > > > > following: > > > > ServerAlias ape.yourdomain.com > > > > ServerAlias *.ape.yourdomain.com > > > > > I think I can also do this easily on my Apache server. > > > > > However, I am getting confused. To me, it seems 1) and 2) are > > > > contradictory. If a user lambda requests ape.mydomain.com he will get > > > > the IP of the APE server according to 1), but he will request > > > > something for the apache server according to 2). > > > > > This is probably pretty obvious to you, but not for me. > > > > > Any help appreciated. > > > > > Thx in advance. > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "APE Project" group. > > > > To post to this group, send email to [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected]<ape-project%[email protected]> > > <ape-project%[email protected]<ape-project%[email protected]> > > > > > For more options, visit this group at > > > >http://groups.google.com/group/ape-project?hl=en > > > > --- > > > > APE Project (Ajax Push Engine) > > > > Official website :http://www.ape-project.org/ > > > > Git Hub :http://github.com/APE-Project/ > > > -- > > You received this message because you are subscribed to the Google > > Groups "APE Project" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<ape-project%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/ape-project?hl=en > > --- > > APE Project (Ajax Push Engine) > > Official website :http://www.ape-project.org/ > > Git Hub :http://github.com/APE-Project/ -- You received this message because you are subscribed to the Google Groups "APE Project" 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/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
