[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Site Folders -Linux Newbie
- Subject: Re: [cobalt-users] Site Folders -Linux Newbie
- From: WayneB6094@xxxxxxx
- Date: Fri Jun 30 16:13:52 2000
In a message dated 6/30/00 3:20:00 PM US Mountain Standard Time,
alonsog@xxxxxxxxxxxxx writes:
> Can someone briefly explain why there's two folders for each site? One is
> the www.site.com folder and another folder for site#. I'm new to linux and
> apache and I got a little confused when I saw those folders.
The "www.domainname.com" folder is actually a symbolic link to the "real"
folder (the one with the site number). In other words, no matter which way
you enter it, you'll end up in the same physical directory.
> Also, how can you tell which folder corresponds to which site? besides
> manually comparing files.
FTP into the server, go to /home/sites, open the folder marked
"www.domainname.com", then look at the address bar of your FTP program. It
will normally resolve the symbolic links to the actual folder names.
You can also do this through the web-based interface. Go to the "server
management" screen, then click on the icon to edit one of the virtual hosts.
Your browser's address bar will display the "site#" as part of the URL.
> And last but not least, does it make a difference how you reference a path
> to a site when using a cgi script for example: /home/sites/site1/web as
> opposed to /home/sites/www.sitename.com/web?
I don't think it matters in most cases, but since the "site#" path is the
"real" path, I always use that one, and have never had any problems. It's
also much faster to type. :)