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 justhost
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]chrisOn 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:
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 justhost 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]chrisOn 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:
WC Database Format (1997)
blank page from template (1997)
Multiple Newcarts (1996)
international time (1997)
catagories (1997)
[ShowNext] feature in 2.0 (1997)
Another search question please... (1998)
[WebDNA] CICADA (2009)
[WebDNA] test (2011)
WCS Newbie question (1997)
WebCatalog can't find database (1997)
How To question on setting up downloads (1997)
RE: Signal Raised (1997)
format and math on the fly (1998)
WebDNA Running Out of RAM? (2004)
Web Delivery Page concept (1997)
Search in 2 or more catalogs (1997)
Help! WebCat2 bug (1997)
Problem with 2.1b3 (1997)
Completed Orders (2006)