A simple note about IIS, the version that come with XP and 2K workstation
(aka personal webserver) didn't allow to create multiple sites (with
multiple host name), and only allow multiple virtual sites, or I currently
didn't have find this features :(
For the moment I've switched all my old use of application scope var to
scope domain avoiding the / path problem that melt all the applications var
that are defined with the same root ('/') in application.ini, and it work
fine
BTW I didn't know the poor man's DNS settings and that an usefull tips :)
Thanks
Gauthier
----- Original Message -----
From: "Scott Cadillac" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 7:58 PM
Subject: Re: Witango-Talk: HOSTS file - Poor man's DNS (was Application
variable leak?)
> Hi James,
>
> Another option (if your workstation is Windows) to get your Development
> Webserver machine to emulate multiple domains (where you only have
internal
> IP addresses available), is to modify the HOSTS file.
>
> It's kind of like a poor man's DNS for your single computer.
>
> All Windows computers have a text file called HOSTS (no extension)
> (sometimes defaulted to HOSTS.SAM but must be renamed without the
extension
> to make it work.)
>
> It is usually found in the C:\Windows directory or
> C:\WINNT\system32\drivers\etc directory.
>
> It has usually has a single entry like this:
>
> 127.0.0.1 localhost
>
> But if you add something like:
>
> 127.0.0.1 myLocalDevStudio
> 192.168.0.4 myLANDevStudio
>
> Then when you open MSIE (or even Netscape) and type:
>
> http://myLocalDevStudio/ - it resolves to your local Webserver.
> http://myLANDevStudio/ - will resolve to a Webserver on your LAN that has
> the IP 192.168.0.4
>
> Depending on your Webserver configuration ( I use IIS) you may need to add
> your custom addresses in the Host settings of the site you want to use.
>
> This scenario works for any Windows workstation and keep in mind the
> Webserver doesn't have to be local - and will even work for external
> addresses.
>
> The following are some screen-shots of my personal workstation using the
> HOSTS file to emulate several Domains all on one test workstation with
just
> local internal IPs. This is just so you can see an example in action.
>
> My HOSTS file (screen-shot XMLX015.GIF)
>
> My IIS Configuration (screen-shot XMLX014.GIF)
>
> Opening my Witango.org test site (screen-shot XMLX012.GIF).
>
> Once this is running - as far as your Webserver is concerned - it is
serving
> up multiple (distinct) sites and now Witango can take advantage of Domain
> Scope. And of course, your Webserver doesn't have to be sharing the same
set
> of files like mine is - your Webserver could have multiple Virtual domains
> with your custom domain names in each.
>
> When I have a moment, maybe I'll turn this into an article on my
> http://xml-extra.net site.
>
> Hope this helps. Cheers....
>
>
> ----- Original Message -----
> From: "Jason Pamental" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
> Sent: Friday, June 14, 2002 9:58 AM
> Subject: Re: Witango-Talk: Application variable leak?
>
>
> > James,
> >
> > You could set up a dns server on that machine that you only access from
> that
> > machine (i.e. Only inside your network)
> >
> > Then you could point the domains to that dev box, and could set up the
> > domains in the ini file and use the domain scoped variables... A litte
> more
> > work to set up and maintain, but a very good test environment.
> >
> > Jason
> >
> > On 6/14/02 12:39 PM, "James Macfarlane" <[EMAIL PROTECTED]>
wrote:
> >
> > > Hi Jason,
> > >
> > > Since this is on our development server, the site's aren't really set
up
> > > as domains. I guess I'm kinda stuck.
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]] On Behalf Of Jason Pamental
> > > Sent: Friday, June 14, 2002 12:33 PM
> > > To: Multiple recipients of list witango-talk
> > > Subject: Re: Witango-Talk: Application variable leak?
> > >
> > >
> > > James,
> > >
> > > Probably best to deal with by using domain-scoped variables instead,
or
> > > of course you could rename on of the apps... But I think domain scope
is
> > > the way to go. There have been lots of posts about this, so a search
> > > through the past messages should give you some good pointers.
> > >
> > > Jason
> > >
> > > On 6/14/02 12:11 PM, "James Macfarlane" <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > >> I have two copies of the same application running in different
folders
> > >
> > >> for different clients. The application displays a message on the main
> > >> page that's stored in an application variable. When the second copy
of
> > >
> > >> the applocation loads, it overwrites the application variables of the
> > >> first copy.
> > >>
> > >> Should it be behaving like this? I would assume that because the
> > >> applications are in two different places that the server would see
> > >> them as two different application even though they have the same
> > >> filenames.
> > >>
> > >> Is there a way around this?
> > >>
> > >> - James.
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body