|
Posted by dorayme on 06/27/07 23:12
In article <c05f4$468269df$40cba7b8$7572@NAXS.COM>,
"Jonathan N. Little" <lws4art@centralva.net> wrote:
> dorayme wrote:
> > But, now that I have the solution to a global construction for a
> > Windows server for a couple of my sites (courtesy of help here in
> > a recent thread), I am going to have a slight management problem.
> > Because the construction used for these servers is double dutch
> > to my Mac server.
> What I do is have a DNS server setup for my LAN and set to a private TLD
> so all websites have a different domain name whether it is the "live"
> version or the locally maintained mirror, e.g.,
>
> live => www.example.com
> local => www.example.private.lan
>
> then I have a universal configuration object which in addition to
> maintaining client information also configs URL and paths...
>
> in the script I define the local and live server names for each site
>
> define('LOCAL_SERVER', 'www.example.private.lan');
> define('REMOTE_SERVER', 'www.example.com');
>
> and upon init of the object a method sets a flag for whether or not the
> site is "on web" or not.
>
> ...
> $this->onweb=($host==REMOTE_SERVER)? 1 : 0;
> ...
>
> the flag is used to set any differences between local and live server
> condition like SSL url and server root, include paths, mailserver
> settings, etc.
I am impressed. Do you maintain any sites on external Windows
servers?
--
dorayme
[Back to original message]
|