Re: [WebDNA] How to get the domain name?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102825
interpreted = N
texte = As far as i know, if you setup apache to do a DNS lookup for every single hit, you would seriously slow-down the web server. the shell command is just host Also, about extracting the domain from the URL, i think you can use this: [function name=CALL_DOMAIN][return][ListMIMEHeaders name=host&exact=F] [url][value][/url][/ListMIMEHeaders][/return][/function] and do something like this if you want: [ShowIf [CALL_DOMAIN]=www.domain1.com][REDIRECT url=http://www.domain2.com ][/ShowIf] [ShowIf [CALL_DOMAIN]=www.domain3.com][REDIRECT url=http:// www.webdna.us[THISURL]][/ShowIf] chris On Jun 25, 2009, at 13:49, Kenneth Grome wrote: >> [getmimeheader name=host] > > Now that I think about it, it looks like I'll have to do > what I want in Apache because WebDNA does not know what > domain is used in the browser URL ... > > Sincerely, > Ken Grome > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] How to get the domain name? (Marc Thompson 2009)
  2. Re: [WebDNA] How to get the domain name? (christophe.billiottet@webdna.us 2009)
  3. Re: [WebDNA] How to get the domain name? (Donovan Brooke 2009)
  4. Re: [WebDNA] How to get the domain name? (Donovan Brooke 2009)
  5. Re: [WebDNA] How to get the domain name? (Kenneth Grome 2009)
  6. Re: [WebDNA] How to get the domain name? (Tom Duke 2009)
  7. [WebDNA] How to get the domain name? (Kenneth Grome 2009)
As far as i know, if you setup apache to do a DNS lookup for every single hit, you would seriously slow-down the web server. the shell command is just host Also, about extracting the domain from the URL, i think you can use this: [function name=CALL_DOMAIN][return][ListMIMEHeaders name=host&exact=F] [url][value][/url][/ListMIMEHeaders][/return][/function] and do something like this if you want: [ShowIf [CALL_DOMAIN]=www.domain1.com][REDIRECT url=http://www.domain2.com ][/ShowIf] [ShowIf [CALL_DOMAIN]=www.domain3.com][REDIRECT url=http:// www.webdna.us[thisurl]][/ShowIf] chris On Jun 25, 2009, at 13:49, Kenneth Grome wrote: >> [getmimeheader name=host] > > Now that I think about it, it looks like I'll have to do > what I want in Apache because WebDNA does not know what > domain is used in the browser URL ... > > Sincerely, > Ken Grome > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ christophe.billiottet@webdna.us

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

minimalist shopping cart. (1997) Bug Report, maybe (1997) Cookie set browser session. (1998) test (2000) Grant, please help me ... (1997) OT: ip address lookup (2007) [CreateDate] tag? (1998) WebCatalog f2 Installation (1997) Carrying Forward (1998) Format question WC Mac f3 (1997) [searchString] (1997) Something about defining variables (1998) Nested [tags] (2001) Silly Question (1997) Variable security (2000) [WriteFile] problems (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [protect admin] (1997) Robert Minor duplicate mail (1997) database size? (1997)