[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Path to users web directory question
- Subject: RE: [cobalt-users] Path to users web directory question
- From: "Russell" <rga@xxxxxx>
- Date: Sun Dec 17 12:55:01 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> its more difficult for them to remember and I don't think they need to
know
> if there are 150 sites on the server or 15 sites on the server.
I wouldn't worry about that ..
Hypermart is always turning up absolute paths like
../server9174/ .. and that's not sites, but servers !!
Most folks never even know it
For cgi scripts always use the absolute path:
/home/sites/site#/web/
CGI is looking for the real disk path and file.
www.sitename.com/ does not exist as far as CGI is concerned
virtual pointers are not real ..
so scripts never find fils located in non real places
if you follow a virtual link to domain.com in your FTP
then you will see it ends up in the real location anyway
/home/sites/site# ..
You can also set paths in cgi scripts
by using the docroot var ..
$file = '/home/sites/site1/web/cgi/script.cgi';
can be done this way:
$file = $ENV{DOCUMENT_ROOT} . '/cgi/script.cgi';
You gotta get the forward slash right.
-- RGA