[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Mike H, one step at a time
> I just got my first dedicated server! I am in the process of implementing
> the usertag you wrote for sooftgoods. I had to wait until I had my server,
> and access to interchange.cfg. Anyways, you remember this portion of the
> code:
>
> >
> > my $docroot = $opt->{document_root} || $::Variable->{DOCROOT};
> > my $dl_dir = $opt->{base_dir} || 'tmp_download';
> > my $server = $opt->{server} || $::Variable->{SERVER_NAME};
> >
>
> Well, When I restarted interchange, I got some barewords errors, See I
> substituted www.imagemogul.com for SERVER_NAME. It didn't like it. The
> barewords errors pointed me to the server name. SO I thought I could use my
> IP address for SERVER_NAME.
>
> When I restarted, I didn't get any errors.
>
> My question is, since this is my first tweaking on the server level, Is it
> OK to sub the IP address in there? Am I doing something that is bad
> practice?
>
You probably didn't quote the server name. I think that you probably
did this:
my $server = $opt->{server} || www.imagemogul.com;
...instead of this:
my $server = $opt->{server} || 'www.imagemogul.com';
You should leave the code as-is and just set the SERVER_NAME variable
in your catalog.cfg or variable.txt. Either that, or make up another
variable name and use that instead.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/