[WebDNA] Fwd: Creating Dynamic Content based on your subdomains (up to 4)

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114931
interpreted = N
texte = 2559 --000000000000b88e430594ed1e33 Content-Type: text/plain; charset="UTF-8" Nobody find this useful or interesting or worth posting under WebDNA "tips and Tricks"...? you can have one index page and pull content from databases base on subdomains... vhost can be simplified ServerAlias YOURDOMAIN.COM ServerAlias *.YOURDOMAIN.COM ServerAlias *.*.YOURDOMAIN.COM ServerAlias *.*.*.YOURDOMAIN.COM ServerAlias *.*.*.*.YOURDOMAIN.COM DocumentRoot /Library/WebServer/YOURDOMAIN.COM/ Directoryindex index.htm ---------- Forwarded message --------- From: Brian Harrington Date: Wed, Oct 9, 2019 at 4:07 AM Subject: Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language To: [!]Brian Harrington - Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language.
http://buffalo.ny.usa.na.yourdomain.com/index.html
http://buffalo.ny.yourdomain.com/index.html
[/!] [listmimeheaders name=host&exact=F] [text]host=[value][/text][/listmimeheaders] [listmimeheaders name=Accept-Language&exact=F] [text]lingo=[getchars start=1&end=2][value][/getchars][/text][/listmimeheaders] [Showif [lingo]=] [text]lingo=en[/text] [/Showif] [Showif [lingo]=[raw][lingo][/raw]] [text]lingo=en[/text] [/Showif] [text]PATH=[thisurl][/text] [text]WWW=[HOST][thisurl][/text] [text]HOSTEND=[countchars][HOST][/countchars][/text] [text]Dot1=[FindString source=[getchars start=1&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot2=[FindString source=[getchars start=[math][Dot1]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot3=[FindString source=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot4=[FindString source=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot5=[FindString source=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot6=[FindString source=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [Showif [Dot1]>0][Showif [Dot2]=0][text]DOTS=1[/text][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]=0][text]DOTS=2[/text][/Showif][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]=0][text]DOTS=3[/text][/Showif][/Showif][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]=0][text]DOTS=4[/text][/Showif][/Showif][/Showif][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]>0][Showif [Dot6]=0][text]DOTS=5[/text][/Showif][/Showif][/Showif][/Showif][/Showif][/Showif] [text]SubHost1=[/text] [text]SubHost2=[/text] [text]SubHost3=[/text] [text]SubHost4=[/text] [Showif [DOTS]=1] [text]TLD=[getchars start=[math][Dot1]+1[/math]&end=[HOSTEND]][HOST][/getchars][/text] [text]HOST2=[getchars start=1&end=[MATH][Dot1]-1[/MATH]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=2] [text]SubHost1=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+1[/math]&end=[MATH][Dot1]+[Dot2]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=3] [text]SubHost2=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]SubHost1=[getchars start=[math][Dot1]+1[/math]&end=[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[MATH][Dot1]+[Dot2]+[Dot3]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=4] [text]SubHost3=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]SubHost2=[getchars start=[math][Dot1]+1[/math]&end=[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/text] [text]SubHost1=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=[MATH][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=5] [text]SubHost4=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]SubHost3=[getchars start=[math][Dot1]+1[/math]&end=[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/text] [text]SubHost2=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text] [text]SubHost1=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=[MATH][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [text]Domain=[HOST2].[TLD][/text]
Lingo=[Lingo] (2 Letter)
ThisURL=[thisurl] (aka File Path)
WWW=[WWW]
HOST=[HOST]
DOTS=[DOTS]
HOST2=[HOST2]
TLD=[TLD]
SubHost1 =[SubHost1]
SubHost2=[SubHost2]
SubHost3=[SubHost3]
SubHost4=[SubHost4]
Domain=[Domain]
-------------------------------------------------------- -- Brian Harrington Auto Glass Xpress 2655 Millersport Hwy. Suite 1063 Getzville, NY 14068 (716) 861-2029 www.Auto-Glass-Xpress.com -- Brian Harrington Auto Glass Xpress 2655 Millersport Hwy. Suite 1063 Getzville, NY 14068 (716) 861-2029 www.Auto-Glass-Xpress.com --000000000000b88e430594ed1e33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nobody find this useful or interesting or worth posting un= der WebDNA "tips and Tricks"...?
you can have one index page = and pull content from databases=C2=A0base on subdomains...
vhost = can be simplified=C2=A0
<VirtualHost 192.168.0.2:80>
=C2=A0 =C2=A0ServerAlias YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *= ..*.YOURDOMAIN.COM
=C2=A0 =C2=A0Ser= verAlias *.*.*.YOURDOMAIN.COM
=C2= =A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.= COM
=C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOURDOMAIN.COM/
=C2=A0 =C2=A0Directoryindex index.ht= m
</VirtualHost>

---------- Forwarded message ---------
From: Brian Harrington <autoglasswny@gm= ail.com>
Date: Wed, Oct 9, 2019 at 4:07 AM
Subject: Cre= ating Dynamic Content based on your subdomains (up to 4) and/or user/browse= r language
To: <talk@webdna.us= >


[!]Brian Harrington - Creating Dynam= ic Content based on your subdomains (up to 4) and/or user/browser language.= <br>
http://buffalo.ny.usa.na.yourdomain.com/index.html= <br>
http://buffalo.ny.yourdomain.com/index.html<br>[/!]<= br>
[listmimeheaders name=3Dhost&exact=3DF]
[text]host=3D[value][= /text][/listmimeheaders]

[listmimeheaders name=3DAccept-Language&= ;exact=3DF]
[text]lingo=3D[getchars start=3D1&end=3D2][value][/getch= ars][/text][/listmimeheaders]
[Showif [lingo]=3D]
[text]lingo=3Den[/t= ext]
[/Showif]
[Showif [lingo]=3D[raw][lingo][/raw]]
[text]lingo= =3Den[/text]
[/Showif]

[text]PATH=3D[thisurl][/text]

[text= ]WWW=3D[HOST][thisurl][/text]

[text]HOSTEND=3D[countchars][HOST= ][/countchars][/text]

[text]Dot1=3D[FindString source=3D[getchars st= art=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text= ]Dot2=3D[FindString source=3D[getchars start=3D[math][Dot1]+1[/math]&en= d=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot3=3D[FindS= tring source=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HO= STEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot4=3D[FindString s= ource=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HO= STEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot5=3D[FindString s= ource=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&en= d=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot6=3D[FindS= tring source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1= [/math]&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]

[= Showif [Dot1]>0][Showif [Dot2]=3D0][text]DOTS=3D1[/text][/Showif][/Showi= f]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]=3D0][text]DOTS= =3D2[/text][/Showif][/Showif][/Showif]
[Showif [Dot1]>0][Showif [Dot2= ]>0][Showif [Dot3]>0][Showif [Dot4]=3D0][text]DOTS=3D3[/text][/Showif= ][/Showif][/Showif][/Showif]
[Showif [Dot1]>0][Showif [Dot2]>0][Sh= owif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]=3D0][text]DOTS=3D4[/tex= t][/Showif][/Showif][/Showif][/Showif][/Showif]
[Showif [Dot1]>0][Sho= wif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]>0= ][Showif [Dot6]=3D0][text]DOTS=3D5[/text][/Showif][/Showif][/Showif][/Showi= f][/Showif][/Showif]

[text]SubHost1=3D[/text]
[text]SubHost2=3D[/= text]
[text]SubHost3=3D[/text]
[text]SubHost4=3D[/text]

[Showi= f [DOTS]=3D1]
[text]TLD=3D[getchars start=3D[math][Dot1]+1[/math]&en= d=3D[HOSTEND]][HOST][/getchars][/text]
[text]HOST2=3D[getchars start=3D1= &end=3D[MATH][Dot1]-1[/MATH]][HOST][/getchars][/text]
[/Showif]
<= br>[Showif [DOTS]=3D2]
[text]SubHost1=3D[getchars start=3D1&end=3D[m= ath][Dot1]-1[/math]][HOST][/getchars][/text]
[text]HOST2=3D[getchars sta= rt=3D[math][Dot1]+1[/math]&end=3D[MATH][Dot1]+[Dot2]-1[/MATH]][HOST][/g= etchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/mat= h]&end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]

[Showif= [DOTS]=3D3]
[text]SubHost2=3D[getchars start=3D1&end=3D[math][Dot1]= -1[/math]][HOST][/getchars][/text]
[text]SubHost1=3D[getchars start=3D[m= ath][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars= ][/text]
[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&am= p;end=3D[MATH][Dot1]+[Dot2]+[Dot3]-1[/MATH]][HOST][/getchars][/text]
[te= xt]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&a= mp;end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]

[Showif [DO= TS]=3D4]
[text]SubHost3=3D[getchars start=3D1&end=3D[math][Dot1]-1[/= math]][HOST][/getchars][/text]
[text]SubHost2=3D[getchars start=3D[math]= [Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/t= ext]
[text]SubHost1=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&= ;end=3D[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text]
[tex= t]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[= MATH][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text]
[text= ]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end= =3D&end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]

[Showi= f [DOTS]=3D5]
[text]SubHost4=3D[getchars start=3D1&end=3D[math][Dot1= ]-1[/math]][HOST][/getchars][/text]
[text]SubHost3=3D[getchars start=3D[= math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost2=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math= ]&end=3D[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text][text]SubHost1=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&= ;end=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text]<= br>[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/mat= h]&end=3D[MATH][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getc= hars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[D= ot4]+[Dot5]+1[/math]&end=3D&end=3D[HOSTEND]][HOST][/getchars][/text= ]
[/Showif]

[text]Domain=3D[HOST2].[TLD][/text]

<hr>=
Lingo=3D[Lingo] (2 Letter)<br>
ThisURL=3D[thisurl] (aka File P= ath)<br>
WWW=3D[WWW]<br>
HOST=3D[HOST]<br>
DOTS= =3D[DOTS]<br>
HOST2=3D[HOST2]<br>
TLD=3D[TLD]<br>SubHost1 =3D[SubHost1]<br>
SubHost2=3D[SubHost2]<br>
Su= bHost3=3D[SubHost3]<br>
SubHost4=3D[SubHost4]<br>
Domain= =3D[Domain]
<hr>
-----------------------------------------= ---------------
--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. Suite 1063
Get= zville, NY 14068
(716) 861-2029
=


--
Brian Harrington
Auto Glass Xpress
26= 55 Millersport Hwy. Suite 1063
Getzville, NY 14068
(716= ) 861-2029
<= /div> --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --000000000000b88e430594ed1e33-- . Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Fwd: Creating Dynamic Content based on your subdomains (up to 4) (Brian Harrington 2019)
2559 --000000000000b88e430594ed1e33 Content-Type: text/plain; charset="UTF-8" Nobody find this useful or interesting or worth posting under WebDNA "tips and Tricks"...? you can have one index page and pull content from databases base on subdomains... vhost can be simplified ServerAlias YOURDOMAIN.COM ServerAlias *.YOURDOMAIN.COM ServerAlias *.*.YOURDOMAIN.COM ServerAlias *.*.*.YOURDOMAIN.COM ServerAlias *.*.*.*.YOURDOMAIN.COM DocumentRoot /Library/WebServer/YOURDOMAIN.COM/ Directoryindex index.htm ---------- Forwarded message --------- From: Brian Harrington Date: Wed, Oct 9, 2019 at 4:07 AM Subject: Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language To: [!]Brian Harrington - Creating Dynamic Content based on your subdomains (up to 4) and/or user/browser language.
http://buffalo.ny.usa.na.yourdomain.com/index.html
http://buffalo.ny.yourdomain.com/index.html
[/!] [listmimeheaders name=host&exact=F] [text]host=[value][/text][/listmimeheaders] [listmimeheaders name=Accept-Language&exact=F] [text]lingo=[getchars start=1&end=2][value][/getchars][/text][/listmimeheaders] [Showif [lingo]=] [text]lingo=en[/text] [/Showif] [Showif [lingo]=[raw][lingo][/raw]] [text]lingo=en[/text] [/Showif] [text]PATH=[thisurl][/text] [text]WWW=[HOST][thisurl][/text] [text]HOSTEND=[countchars][HOST][/countchars][/text] [text]Dot1=[FindString source=[getchars start=1&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot2=[FindString source=[getchars start=[math][Dot1]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot3=[FindString source=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot4=[FindString source=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot5=[FindString source=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [text]Dot6=[FindString source=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=[HOSTEND]][HOST][/getchars]&find=.][/text] [Showif [Dot1]>0][Showif [Dot2]=0][text]DOTS=1[/text][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]=0][text]DOTS=2[/text][/Showif][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]=0][text]DOTS=3[/text][/Showif][/Showif][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]=0][text]DOTS=4[/text][/Showif][/Showif][/Showif][/Showif][/Showif] [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]>0][Showif [Dot6]=0][text]DOTS=5[/text][/Showif][/Showif][/Showif][/Showif][/Showif][/Showif] [text]SubHost1=[/text] [text]SubHost2=[/text] [text]SubHost3=[/text] [text]SubHost4=[/text] [Showif [DOTS]=1] [text]TLD=[getchars start=[math][Dot1]+1[/math]&end=[HOSTEND]][HOST][/getchars][/text] [text]HOST2=[getchars start=1&end=[math][Dot1]-1[/MATH]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=2] [text]SubHost1=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+1[/math]&end=[math][Dot1]+[Dot2]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=3] [text]SubHost2=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]SubHost1=[getchars start=[math][Dot1]+1[/math]&end=[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=4] [text]SubHost3=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]SubHost2=[getchars start=[math][Dot1]+1[/math]&end=[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/text] [text]SubHost1=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [Showif [DOTS]=5] [text]SubHost4=[getchars start=1&end=[math][Dot1]-1[/math]][HOST][/getchars][/text] [text]SubHost3=[getchars start=[math][Dot1]+1[/math]&end=[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/text] [text]SubHost2=[getchars start=[math][Dot1]+[Dot2]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text] [text]SubHost1=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text] [text]HOST2=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text] [text]TLD=[getchars start=[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=&end=[HOSTEND]][HOST][/getchars][/text] [/Showif] [text]Domain=[HOST2].[TLD][/text]
Lingo=[Lingo] (2 Letter)
ThisURL=[thisurl] (aka File Path)
WWW=[WWW]
HOST=[HOST]
DOTS=[DOTS]
HOST2=[HOST2]
TLD=[TLD]
SubHost1 =[SubHost1]
SubHost2=[SubHost2]
SubHost3=[SubHost3]
SubHost4=[SubHost4]
Domain=[Domain]
-------------------------------------------------------- -- Brian Harrington Auto Glass Xpress 2655 Millersport Hwy. Suite 1063 Getzville, NY 14068 (716) 861-2029 www.Auto-Glass-Xpress.com -- Brian Harrington Auto Glass Xpress 2655 Millersport Hwy. Suite 1063 Getzville, NY 14068 (716) 861-2029 www.Auto-Glass-Xpress.com --000000000000b88e430594ed1e33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nobody find this useful or interesting or worth posting un= der WebDNA "Tips and Tricks"...?
you can have one index page = and pull content from databases=C2=A0base on subdomains...
vhost = can be simplified=C2=A0
<VirtualHost 192.168.0.2:80>
=C2=A0 =C2=A0ServerAlias YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *= ..*.YOURDOMAIN.COM
=C2=A0 =C2=A0Ser= verAlias *.*.*.YOURDOMAIN.COM
=C2= =A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.= COM
=C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOURDOMAIN.COM/
=C2=A0 =C2=A0Directoryindex index.ht= m
</VirtualHost>

---------- Forwarded message ---------
From: Brian Harrington <autoglasswny@gm= ail.com>
Date: Wed, Oct 9, 2019 at 4:07 AM
Subject: Cre= ating Dynamic Content based on your subdomains (up to 4) and/or user/browse= r language
To: <talk@webdna.us= >


[!]Brian Harrington - Creating Dynam= ic Content based on your subdomains (up to 4) and/or user/browser language.= <br>
http://buffalo.ny.usa.na.yourdomain.com/index.html= <br>
http://buffalo.ny.yourdomain.com/index.html<br>[/!]<= br>
[listmimeheaders name=3Dhost&exact=3DF]
[text]host=3D[value][= /text][/listmimeheaders]

[listmimeheaders name=3DAccept-Language&= ;exact=3DF]
[text]lingo=3D[getchars start=3D1&end=3D2][value][/getch= ars][/text][/listmimeheaders]
[Showif [lingo]=3D]
[text]lingo=3Den[/t= ext]
[/Showif]
[Showif [lingo]=3D[raw][lingo][/raw]]
[text]lingo= =3Den[/text]
[/Showif]

[text]PATH=3D[thisurl][/text]

[text= ]WWW=3D[HOST][thisurl][/text]

[text]HOSTEND=3D[countchars][HOST= ][/countchars][/text]

[text]Dot1=3D[FindString source=3D[getchars st= art=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text= ]Dot2=3D[FindString source=3D[getchars start=3D[math][Dot1]+1[/math]&en= d=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot3=3D[FindS= tring source=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HO= STEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot4=3D[FindString s= ource=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HO= STEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot5=3D[FindString s= ource=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&en= d=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]
[text]Dot6=3D[FindS= tring source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1= [/math]&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text]

[= Showif [Dot1]>0][Showif [Dot2]=3D0][text]DOTS=3D1[/text][/Showif][/Showi= f]
[Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]=3D0][text]DOTS= =3D2[/text][/Showif][/Showif][/Showif]
[Showif [Dot1]>0][Showif [Dot2= ]>0][Showif [Dot3]>0][Showif [Dot4]=3D0][text]DOTS=3D3[/text][/Showif= ][/Showif][/Showif][/Showif]
[Showif [Dot1]>0][Showif [Dot2]>0][Sh= owif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]=3D0][text]DOTS=3D4[/tex= t][/Showif][/Showif][/Showif][/Showif][/Showif]
[Showif [Dot1]>0][Sho= wif [Dot2]>0][Showif [Dot3]>0][Showif [Dot4]>0][Showif [Dot5]>0= ][Showif [Dot6]=3D0][text]DOTS=3D5[/text][/Showif][/Showif][/Showif][/Showi= f][/Showif][/Showif]

[text]SubHost1=3D[/text]
[text]SubHost2=3D[/= text]
[text]SubHost3=3D[/text]
[text]SubHost4=3D[/text]

[Showi= f [DOTS]=3D1]
[text]TLD=3D[getchars start=3D[math][Dot1]+1[/math]&en= d=3D[HOSTEND]][HOST][/getchars][/text]
[text]HOST2=3D[getchars start=3D1= &end=3D[math][Dot1]-1[/MATH]][HOST][/getchars][/text]
[/Showif]
<= br>[Showif [DOTS]=3D2]
[text]SubHost1=3D[getchars start=3D1&end=3D[m= ath][Dot1]-1[/math]][HOST][/getchars][/text]
[text]HOST2=3D[getchars sta= rt=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/MATH]][HOST][/g= etchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/mat= h]&end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]

[Showif= [DOTS]=3D3]
[text]SubHost2=3D[getchars start=3D1&end=3D[math][Dot1]= -1[/math]][HOST][/getchars][/text]
[text]SubHost1=3D[getchars start=3D[m= ath][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars= ][/text]
[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&am= p;end=3D[math][Dot1]+[Dot2]+[Dot3]-1[/MATH]][HOST][/getchars][/text]
[te= xt]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&a= mp;end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]

[Showif [DO= TS]=3D4]
[text]SubHost3=3D[getchars start=3D1&end=3D[math][Dot1]-1[/= math]][HOST][/getchars][/text]
[text]SubHost2=3D[getchars start=3D[math]= [Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST][/getchars][/t= ext]
[text]SubHost1=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&= ;end=3D[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text]
[tex= t]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[= MATH][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text]
[text= ]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end= =3D&end=3D[HOSTEND]][HOST][/getchars][/text]
[/Showif]

[Showi= f [DOTS]=3D5]
[text]SubHost4=3D[getchars start=3D1&end=3D[math][Dot1= ]-1[/math]][HOST][/getchars][/text]
[text]SubHost3=3D[getchars start=3D[= math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost2=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math= ]&end=3D[math][Dot1]+[Dot2]+[Dot3]-1[/math]][HOST][/getchars][/text][text]SubHost1=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&= ;end=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text]<= br>[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/mat= h]&end=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getc= hars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[D= ot4]+[Dot5]+1[/math]&end=3D&end=3D[HOSTEND]][HOST][/getchars][/text= ]
[/Showif]

[text]Domain=3D[HOST2].[TLD][/text]

<hr>=
Lingo=3D[Lingo] (2 Letter)<br>
ThisURL=3D[thisurl] (aka File P= ath)<br>
WWW=3D[WWW]<br>
HOST=3D[HOST]<br>
DOTS= =3D[DOTS]<br>
HOST2=3D[HOST2]<br>
TLD=3D[TLD]<br>SubHost1 =3D[SubHost1]<br>
SubHost2=3D[SubHost2]<br>
Su= bHost3=3D[SubHost3]<br>
SubHost4=3D[SubHost4]<br>
Domain= =3D[Domain]
<hr>
-----------------------------------------= ---------------
--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. Suite 1063
Get= zville, NY 14068
(716) 861-2029
=


--
Brian Harrington
Auto Glass Xpress
26= 55 Millersport Hwy. Suite 1063
Getzville, NY 14068
(716= ) 861-2029
<= /div> --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --000000000000b88e430594ed1e33-- . Brian Harrington

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:

M$loth messes with our sites (again) 2004/02/03 (2004) Bug? (1997) [WebDNA] [store] and [recall]: default db location (2015) Webdna 5.0 reference documentation (2003) This list needs a digest: rant, rave... (1997) WebDNA / Red Hat 9 ? (2003) Line items in table cells (1997) Problems appending to database (1997) auto adding SKUs w/DB helper (1998) Re:EMail not being sent (1999) Setting up shop (1997) [WebDNA] a major shift in strategy? (2008) Can a database get stomped by simultaneous access? (1997) Great product and great job ! (1997) 4.0.x find (2000) Summary search -- speed (1997) RE: Cart Template (1997) [ShowCart] and GET vs. POST (1997) Roundup function? (1997) RE: [WebDNA] v6.2 dependencies? (2010)