Using files in /data on your webpage
If you have large files to go on your webpage you may find they don't fit on the space allocated for your webpage, as the space allocated on your webpage is part of your quota.
The words directory and folder mean the same thing in this document.
A solution is to put some or all of the files in a /data area.
To use /data do the following
- Create a directory for your webpages in /data in this example we
call it df-webpages
mkdir /data/sub2/df-webpages/
- Link this directory to the directory holding your webpages for example
persuming your webpages are kept in a public_html directory (default).
cd cd public_html ln -s /data/sub2/df-webpages
This would create an entry called df-webpages in your public_html directory.
-
Put your files in this directory, treating it as if it is a normal directory (technically it is called a symlink). Any files you put in it will not be counted towards your quota, as they will be stored in a /data area.
- You reference the files in your webdocuments as you would any other
files in your webtree. For example a file called hello.html in the
directory df-webpages would be referenced by
<a href="df-webpages/hello.html">My page in the data area</a>