Re: [WebDNA] Fwd: Creating Dynamic Content based on your subdomains

This WebDNA talk-list message is from

2020


It keeps the original formatting.
numero = 115125
interpreted = N
texte = 2754 This is a multi-part message in MIME format. --------------FBE997C91BBAE8C466439641 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Brian, I just read this among the hundreds of emails I skipped back in the fall. It's very interesting.=C2=A0 Where would you put that script? I've always used the Server edition of WebDNA because I run multiple=20 domain names per site, which , from what I understand, isn't supported=20 by the FastCGI version. I engineered something like this a few years ago, but I process it after=20 they visitor hits the site.=C2=A0 Depending on the domain name and langua= ge=20 all the content is pulled from a different database. -Matt On 10/15/2019 2:30 AM, Brian Harrington wrote: > Nobody find this useful or interesting or worth posting under WebDNA=20 > "tips and Tricks"...? > you can have one index page and pull content from databases=C2=A0base o= n=20 > subdomains... > vhost can be simplified > > > =C2=A0 =C2=A0ServerAlias YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.*.YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.*.*.YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.COM > =C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOURDOMAIN.COM/=20 > > =C2=A0 =C2=A0Directoryindex 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)=20 > and/or user/browser language > To: > > > > [!]Brian Harrington - Creating Dynamic Content based on your=20 > 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=3Dhost&exact=3DF] > [text]host=3D[value][/text][/listmimeheaders] > > [listmimeheaders name=3DAccept-Language&exact=3DF] > [text]lingo=3D[getchars=20 > start=3D1&end=3D2][value][/getchars][/text][/listmimeheaders] > [Showif [lingo]=3D] > [text]lingo=3Den[/text] > [/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=20 > start=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text] > [text]Dot2=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&find=3D= ..][/text] > [text]Dot3=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&= find=3D.][/text] > [text]Dot4=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HOSTEND]][HOST][/get= chars]&find=3D.][/text] > [text]Dot5=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[HOSTEND]][HOS= T][/getchars]&find=3D.][/text] > [text]Dot6=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D[HOSTEN= D]][HOST][/getchars]&find=3D.][/text] > > [Showif [Dot1]>0][Showif [Dot2]=3D0][text]DOTS=3D1[/text][/Showif][/Sho= wif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif=20 > [Dot3]=3D0][text]DOTS=3D2[/text][/Showif][/Showif][/Showif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif=20 > [Dot4]=3D0][text]DOTS=3D3[/text][/Showif][/Showif][/Showif][/Showif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif=20 > [Dot4]>0][Showif=20 > [Dot5]=3D0][text]DOTS=3D4[/text][/Showif][/Showif][/Showif][/Showif][/S= howif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif=20 > [Dot4]>0][Showif [Dot5]>0][Showif=20 > [Dot6]=3D0][text]DOTS=3D5[/text][/Showif][/Showif][/Showif][/Showif][/S= howif][/Showif] > > [text]SubHost1=3D[/text] > [text]SubHost2=3D[/text] > [text]SubHost3=3D[/text] > [text]SubHost4=3D[/text] > > [Showif [DOTS]=3D1] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D1&end=3D[MATH][Dot1]-1[/MATH]][HOST][/getchars][/text] > [/Showif] > > [Showif [DOTS]=3D2] > [text]SubHost1=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[MATH][Dot1]+[Dot2]-1[/MATH]][HOST]= [/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars][= /text] > [/Showif] > > [Showif [DOTS]=3D3] > [text]SubHost2=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]SubHost1=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST]= [/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[MATH][Dot1]+[Dot2]+[Dot3]-1= [/MATH]][HOST][/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&end=3D[HOSTEND]][HOS= T][/getchars][/text] > [/Showif] > > [Showif [DOTS]=3D4] > [text]SubHost3=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]SubHost2=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST]= [/getchars][/text] > [text]SubHost1=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]-1= [/math]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[MATH][Dot1]+[Dot2]+[= Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D&end=3D[HOSTEN= D]][HOST][/getchars][/text] > [/Showif] > > [Showif [DOTS]=3D5] > [text]SubHost4=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]SubHost3=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST]= [/getchars][/text] > [text]SubHost2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]-1= [/math]][HOST][/getchars][/text] > [text]SubHost1=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[math][Dot1]+[Dot2]+[= Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[MATH][Dot1]+[= Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D&end=3D= [HOSTEND]][HOST][/getchars][/text] > [/Showif] > > [text]Domain=3D[HOST2].[TLD][/text] > >
> Lingo=3D[Lingo] (2 Letter)
> ThisURL=3D[thisurl] (aka File Path)
> WWW=3D[WWW]
> HOST=3D[HOST]
> DOTS=3D[DOTS]
> HOST2=3D[HOST2]
> TLD=3D[TLD]
> SubHost1 =3D[SubHost1]
> SubHost2=3D[SubHost2]
> SubHost3=3D[SubHost3]
> SubHost4=3D[SubHost4]
> Domain=3D[Domain] >
> -------------------------------------------------------- > --=20 > Brian Harrington > Auto Glass Xpress > 2655 Millersport Hwy. Suite 1063 > Getzville, NY 14068 > (716) 861-2029 > www.Auto-Glass-Xpress.com > > > --=20 > Brian Harrington > Auto Glass Xpress > 2655 Millersport Hwy. Suite 1063 > Getzville, NY 14068 > (716) 861-2029 > www.Auto-Glass-Xpress.com > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list=20 > talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us=20 > archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting:=20 > support@webdna.us=20 --=20 Matthew A Perosi Corporate Consultant Mobile Marketing Expert Senior Web Developer SEO Analyst & Educator matt@psiprime.com Psi Prime 323 Union Blvd. Totowa, NJ 07512 Direct: 888.872.0274 Fax: 888.488.5924 http://www.perosi.com --------------FBE997C91BBAE8C466439641 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Brian,

I just read this among the hundreds of emails I skipped back in the fall.=C2=A0
It's very interesting.=C2=A0 Where would you put that script?

I've always used the Server edition of WebDNA because I run multiple domain names per site, which , from what I understand, isn't supported by the FastCGI version.

I engineered something like this a few years ago, but I process it after they visitor hits the site.=C2=A0 Depending on the domain name = and language all the content is pulled from a different database.

-Matt

On 10/15/2019 2:30 AM, Brian Harringto= n wrote:
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=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=A0ServerAlias *.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOUR= DOMAIN.COM/
=C2=A0 =C2=A0Directoryindex index.htm
</VirtualHost>

---------- Forwarded message ---------
From: Brian Harrington <autoglasswny@gmail.com>=
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: <talk@webdna.us>


[!]Brian Harrington - Creating Dynamic 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>[/!]

[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][/getchars][/text][/listmimehe= aders]
[Showif [lingo]=3D]
[text]lingo=3Den[/text]
[/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 start=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D= ..][/text]
[text]Dot2=3D[FindString source=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&f= ind=3D.][/text]
[text]Dot3=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars= ]&find=3D.][/text]
[text]Dot4=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HOSTEND]][HOST][/g= etchars]&find=3D.][/text]
[text]Dot5=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[HOSTEND]][H= OST][/getchars]&find=3D.][/text]
[text]Dot6=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D[HOST= END]][HOST][/getchars]&find=3D.][/text]

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

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

[Showif [DOTS]=3D1]
[text]TLD=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][= /getchars][/text]
[text]HOST2=3D[getchars start=3D1&end=3D[MATH][Dot1]-1[/MATH]][HOST][/getchar= s][/text]
[/Showif]

[Showif [DOTS]=3D2]
[text]SubHost1=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]HOST2=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[MATH][Dot1]+[Dot2]-1[/MATH]][HOS= T][/getchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars= ][/text]
[/Showif]

[Showif [DOTS]=3D3]
[text]SubHost2=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost1=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS= T][/getchars][/text]
[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[MATH][Dot1]+[Dot2]+[Dot3]= -1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&end=3D[HOSTEND= ]][HOST][/getchars][/text]
[/Showif]

[Showif [DOTS]=3D4]
[text]SubHost3=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost2=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS= T][/getchars][/text]
[text]SubHost1=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]= -1[/math]][HOST][/getchars][/text]
[text]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]

[Showif [DOTS]=3D5]
[text]SubHost4=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost3=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS= T][/getchars][/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]
[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[MATH][Dot1]= +[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[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 Path)<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>
SubHost3=3D[SubHost3]<br>
SubHost4=3D[SubHost4]<br>
Domain=3D[Domain]
<hr>
----------------------------------------------------= ----
--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. Suite 1063
Getzville, NY 14068
(716) 861-2029


--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. Suite 1063
Getzville, NY 14068
(716) 861-2029
--------------------------------------------------------- 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

--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatorm=att@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct:  888.872.0274Fax:     888.488.5924http://=www.perosi.com
--------------------------------------------------------- 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 --------------FBE997C91BBAE8C466439641-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Fwd: Creating Dynamic Content based on your subdomains (christophe.billiottet@webdna.us 2020)
  2. Re: [WebDNA] Fwd: Creating Dynamic Content based on your subdomains ("Matthew A Perosi, Psi Prime" 2020)
  3. [WebDNA] Fwd: Creating Dynamic Content based on your subdomains (up to 4) (Brian Harrington 2019)
2754 This is a multi-part message in MIME format. --------------FBE997C91BBAE8C466439641 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Brian, I just read this among the hundreds of emails I skipped back in the fall. It's very interesting.=C2=A0 Where would you put that script? I've always used the Server edition of WebDNA because I run multiple=20 domain names per site, which , from what I understand, isn't supported=20 by the FastCGI version. I engineered something like this a few years ago, but I process it after=20 they visitor hits the site.=C2=A0 Depending on the domain name and langua= ge=20 all the content is pulled from a different database. -Matt On 10/15/2019 2:30 AM, Brian Harrington wrote: > Nobody find this useful or interesting or worth posting under WebDNA=20 > "Tips and Tricks"...? > you can have one index page and pull content from databases=C2=A0base o= n=20 > subdomains... > vhost can be simplified > > > =C2=A0 =C2=A0ServerAlias YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.*.YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.*.*.YOURDOMAIN.COM > =C2=A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.COM > =C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOURDOMAIN.COM/=20 > > =C2=A0 =C2=A0Directoryindex 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)=20 > and/or user/browser language > To: > > > > [!]Brian Harrington - Creating Dynamic Content based on your=20 > 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=3Dhost&exact=3DF] > [text]host=3D[value][/text][/listmimeheaders] > > [listmimeheaders name=3DAccept-Language&exact=3DF] > [text]lingo=3D[getchars=20 > start=3D1&end=3D2][value][/getchars][/text][/listmimeheaders] > [Showif [lingo]=3D] > [text]lingo=3Den[/text] > [/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=20 > start=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D.][/text] > [text]Dot2=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&find=3D= ..][/text] > [text]Dot3=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&= find=3D.][/text] > [text]Dot4=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HOSTEND]][HOST][/get= chars]&find=3D.][/text] > [text]Dot5=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[HOSTEND]][HOS= T][/getchars]&find=3D.][/text] > [text]Dot6=3D[FindString source=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D[HOSTEN= D]][HOST][/getchars]&find=3D.][/text] > > [Showif [Dot1]>0][Showif [Dot2]=3D0][text]DOTS=3D1[/text][/Showif][/Sho= wif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif=20 > [Dot3]=3D0][text]DOTS=3D2[/text][/Showif][/Showif][/Showif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif=20 > [Dot4]=3D0][text]DOTS=3D3[/text][/Showif][/Showif][/Showif][/Showif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif=20 > [Dot4]>0][Showif=20 > [Dot5]=3D0][text]DOTS=3D4[/text][/Showif][/Showif][/Showif][/Showif][/S= howif] > [Showif [Dot1]>0][Showif [Dot2]>0][Showif [Dot3]>0][Showif=20 > [Dot4]>0][Showif [Dot5]>0][Showif=20 > [Dot6]=3D0][text]DOTS=3D5[/text][/Showif][/Showif][/Showif][/Showif][/S= howif][/Showif] > > [text]SubHost1=3D[/text] > [text]SubHost2=3D[/text] > [text]SubHost3=3D[/text] > [text]SubHost4=3D[/text] > > [Showif [DOTS]=3D1] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/MATH]][HOST][/getchars][/text] > [/Showif] > > [Showif [DOTS]=3D2] > [text]SubHost1=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/MATH]][HOST]= [/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars][= /text] > [/Showif] > > [Showif [DOTS]=3D3] > [text]SubHost2=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]SubHost1=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST]= [/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]-1= [/MATH]][HOST][/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&end=3D[HOSTEND]][HOS= T][/getchars][/text] > [/Showif] > > [Showif [DOTS]=3D4] > [text]SubHost3=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]SubHost2=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST]= [/getchars][/text] > [text]SubHost1=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]-1= [/math]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[math][Dot1]+[Dot2]+[= Dot3]+[Dot4]-1[/MATH]][HOST][/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D&end=3D[HOSTEN= D]][HOST][/getchars][/text] > [/Showif] > > [Showif [DOTS]=3D5] > [text]SubHost4=3D[getchars=20 > start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchars][/text] > [text]SubHost3=3D[getchars=20 > start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOST]= [/getchars][/text] > [text]SubHost2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]-1= [/math]][HOST][/getchars][/text] > [text]SubHost1=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[math][Dot1]+[Dot2]+[= Dot3]+[Dot4]-1[/math]][HOST][/getchars][/text] > [text]HOST2=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[math][Dot1]+[= Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text] > [text]TLD=3D[getchars=20 > start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D&end=3D= [HOSTEND]][HOST][/getchars][/text] > [/Showif] > > [text]Domain=3D[HOST2].[TLD][/text] > >
> Lingo=3D[Lingo] (2 Letter)
> ThisURL=3D[thisurl] (aka File Path)
> WWW=3D[WWW]
> HOST=3D[HOST]
> DOTS=3D[DOTS]
> HOST2=3D[HOST2]
> TLD=3D[TLD]
> SubHost1 =3D[SubHost1]
> SubHost2=3D[SubHost2]
> SubHost3=3D[SubHost3]
> SubHost4=3D[SubHost4]
> Domain=3D[Domain] >
> -------------------------------------------------------- > --=20 > Brian Harrington > Auto Glass Xpress > 2655 Millersport Hwy. Suite 1063 > Getzville, NY 14068 > (716) 861-2029 > www.Auto-Glass-Xpress.com > > > --=20 > Brian Harrington > Auto Glass Xpress > 2655 Millersport Hwy. Suite 1063 > Getzville, NY 14068 > (716) 861-2029 > www.Auto-Glass-Xpress.com > --------------------------------------------------------- This message=20 > is sent to you because you are subscribed to the mailing list=20 > talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us=20 > archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting:=20 > support@webdna.us=20 --=20 Matthew A Perosi Corporate Consultant Mobile Marketing Expert Senior Web Developer SEO Analyst & Educator matt@psiprime.com Psi Prime 323 Union Blvd. Totowa, NJ 07512 Direct: 888.872.0274 Fax: 888.488.5924 http://www.perosi.com --------------FBE997C91BBAE8C466439641 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Brian,

I just read this among the hundreds of emails I skipped back in the fall.=C2=A0
It's very interesting.=C2=A0 Where would you put that script?

I've always used the Server edition of WebDNA because I run multiple domain names per site, which , from what I understand, isn't supported by the FastCGI version.

I engineered something like this a few years ago, but I process it after they visitor hits the site.=C2=A0 Depending on the domain name = and language all the content is pulled from a different database.

-Matt

On 10/15/2019 2:30 AM, Brian Harringto= n wrote:
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=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=A0ServerAlias *.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0ServerAlias *.*.*.*.YOURDOMAIN.COM
=C2=A0 =C2=A0DocumentRoot /Library/WebServer/YOUR= DOMAIN.COM/
=C2=A0 =C2=A0Directoryindex index.htm
</VirtualHost>

---------- Forwarded message ---------
From: Brian Harrington <autoglasswny@gmail.com>=
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: <talk@webdna.us>


[!]Brian Harrington - Creating Dynamic 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>[/!]

[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][/getchars][/text][/listmimehe= aders]
[Showif [lingo]=3D]
[text]lingo=3Den[/text]
[/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 start=3D1&end=3D[HOSTEND]][HOST][/getchars]&find=3D= ..][/text]
[text]Dot2=3D[FindString source=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][/getchars]&f= ind=3D.][/text]
[text]Dot3=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars= ]&find=3D.][/text]
[text]Dot4=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D[HOSTEND]][HOST][/g= etchars]&find=3D.][/text]
[text]Dot5=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[HOSTEND]][H= OST][/getchars]&find=3D.][/text]
[text]Dot6=3D[FindString source=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[Dot5]+1[/math]&end=3D[HOST= END]][HOST][/getchars]&find=3D.][/text]

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

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

[Showif [DOTS]=3D1]
[text]TLD=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[HOSTEND]][HOST][= /getchars][/text]
[text]HOST2=3D[getchars start=3D1&end=3D[math][Dot1]-1[/MATH]][HOST][/getchar= s][/text]
[/Showif]

[Showif [DOTS]=3D2]
[text]SubHost1=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]HOST2=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/MATH]][HOS= T][/getchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[HOSTEND]][HOST][/getchars= ][/text]
[/Showif]

[Showif [DOTS]=3D3]
[text]SubHost2=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost1=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS= T][/getchars][/text]
[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]= -1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+1[/math]&end=3D&end=3D[HOSTEND= ]][HOST][/getchars][/text]
[/Showif]

[Showif [DOTS]=3D4]
[text]SubHost3=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost2=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS= T][/getchars][/text]
[text]SubHost1=3D[getchars start=3D[math][Dot1]+[Dot2]+1[/math]&end=3D[math][Dot1]+[Dot2]+[Dot3]= -1[/math]][HOST][/getchars][/text]
[text]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]

[Showif [DOTS]=3D5]
[text]SubHost4=3D[getchars start=3D1&end=3D[math][Dot1]-1[/math]][HOST][/getchar= s][/text]
[text]SubHost3=3D[getchars start=3D[math][Dot1]+1[/math]&end=3D[math][Dot1]+[Dot2]-1[/math]][HOS= T][/getchars][/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]
[text]HOST2=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+1[/math]&end=3D[math][Dot1]= +[Dot2]+[Dot3]+[Dot4]+[Dot5]-1[/MATH]][HOST][/getchars][/text]
[text]TLD=3D[getchars start=3D[math][Dot1]+[Dot2]+[Dot3]+[Dot4]+[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 Path)<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>
SubHost3=3D[SubHost3]<br>
SubHost4=3D[SubHost4]<br>
Domain=3D[Domain]
<hr>
----------------------------------------------------= ----
--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. Suite 1063
Getzville, NY 14068
(716) 861-2029


--
Brian Harrington
Auto Glass Xpress
2655 Millersport Hwy. Suite 1063
Getzville, NY 14068
(716) 861-2029
--------------------------------------------------------- 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

--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatorm=att@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct:  888.872.0274Fax:     888.488.5924http://=www.perosi.com
--------------------------------------------------------- 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 --------------FBE997C91BBAE8C466439641-- . "Matthew A Perosi, Psi Prime"

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:

Summing a field full of numbers ... (1997) Ok here is a question? (1997) Download (1999) New to WebCat-very unsure (2000) [WebDNA]