From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d5b211b0c1ffcf3e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.223.40 with SMTP id qr8mr1738801pbc.0.1339663191135; Thu, 14 Jun 2012 01:39:51 -0700 (PDT) Path: l9ni49331pbj.0!nntp.google.com!news2.google.com!goblin1!goblin3!goblin.stu.neva.ru!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Thu, 14 Jun 2012 10:39:49 +0200 Organization: Ada @ Home Message-ID: References: <79c5c9f7-4b72-4990-8961-b3e2db4db79b@qz1g2000pbc.googlegroups.com> <98ef69fe-f5af-485b-89b2-9358059f4582@googlegroups.com> <1q346u53zhu10.p16uyzeau73b.dlg@40tude.net> <173ko1fncizl$.1eznzqb6vly3k.dlg@40tude.net> <06f156f9-7314-458b-b27e-145e32d456be@e7g2000pbg.googlegroups.com> <17xghqo8sm3hr.6uwt5x0h4wem$.dlg@40tude.net> NNTP-Posting-Host: NTyL1A5y1WruLcQDEgo8zQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.00 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-06-14T10:39:49+02:00 List-Id: Le Thu, 14 Jun 2012 09:58:10 +0200, Dmitry A. Kazakov = a =C3=A9crit: > On Wed, 13 Jun 2012 20:21:26 -0700 (PDT), quiet_lad wrote: > >> On Jun 13, 6:09 am, "Dmitry A. Kazakov" >> wrote: >>> On Wed, 13 Jun 2012 03:35:05 -0700 (PDT), quiet_lad wrote: >>>> What does one do then with say 1000 websites on 1 web appserver? If= >>>> not use patterns? >>> >>> Especially in such cases. Pattern matching (even RE) is a very = >>> expensive >>> thing, eats lot of resources. > >> so what does one do? how do you match say name based virtual hosts on= >> aws? > > What is the problem? I cannot decipher "match say name based virtual = > hosts > on aws." > Web addresses have a domain name and a TLD, like in adalog.fr. The serve= r = is reached via DNS request returning the IP addresse for the domain. Web= = addresses may also have subdomains. An example could be archive.adaic.co= m. = =E2=80=9Carchive=E2=80=9D, is a subdomain of adaic.com. To reach the sub= domain, you have = to contact the server at the IP address associated to the domain = adaic.com. That means archive.adaic.com has the same IP address as = adaic.com. The same goes for any other subdomain like news.mysite.net, = forum.mysite.net, wiki.mysite.net and so on, all reached via mysite.net'= s = IP. Now, they may be multiple way to associate a subdomain to a server. The = = most typical one for tiny to medium traffic, is to make a server handle = = the domain and all of its subdomains. When an Apache server handles multiple domains and/or subdomains, these = = are configured as virtual hosts. Each virtual host configuration tells t= he = server where to retrieve the document from or what CGI to invoke to retu= rn = a document. This may be indeed done using pattern matching on the URL, b= ut = that's not one of the hottest use case of RegExp (:-P) . -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity