|
U p l o a d i n g F i l e s
|
|
Uploading files to your Virtual Server is quite easy,
but there are a few things you need to remember. Once you have mastered
these simple techniques you will be able to add any files you
want to your Virtual Server.
Your Home Pages and CGI scripts can be produced on
your local machine and then the finished product can be
uploaded to your Virtual Server.
You will also find that you can download files such as
your aliases file and certain configuration files. This will allow you to
make changes on your local PC, then reload the files to
your Virtual Server.
Here are the simple steps you can take:
You will need an FTP client for your local
machine. You can find many free and useful clients on the Internet. Search the Web for
FTP client and see what comes up.
If you use Windows, we have found Cute FTP and
WS_FTP to be very useful. If you use a Macintosh, try
Fetch.
Connect to your Virtual Server via FTP using your login
id and your login password. Do not login as
anonymous, as you will not have access to the directories and files you
need.
When you login to your site, you will be at your home
directory. This is the same directory you find yourself in when
you telnet to your site.
To upload Home Pages, go to the
www/htdocs directory. Here you will find
index.html. This is the default page that comes up when
"http://www.yourdomain.com" is entered in a browser.
You may upload your Home Pages here, or into any directory under the
htdocs directory. Be sure you FTP all your
Home Page files, as well as any text files such as cgi script source code
in ASCII format! All your image files need to be FTP'd in BINARY
format.
If you FTP a file called test.htm to the
htdocs directory, it will be accessed by the address
http://www.yourdomain.com/test.htm
If you make a directory called documents below the
htdocs directory, and FTP a file called info.html to that
directory, it will be accessed by the address
http://www.yourdomain.com/documents/info.html
If you want to change the default page that comes
up when you enter http://www.yourdomain.com.... there are several
approaches that can be taken.
- Upload the file into the htdocs directory, and rename it
index.html.
- Establish a symbolic link to the file you uploaded to the htdocs
directory named index.html by typing the following
command:
ln -s <filename> index.html
- Change the DirectoryIndex definition in the
srm.conf file to be the filename of the uploaded
file.
Those are the simple steps to FTP. If you have further questions, or
comments, please send us some email at
support@digitaldaze.com.
|