Where do I upload my html files to ?
You will need to ftp your html files to the /home/USERNAME/public_html directory. Make sure you ftp them in ASCII mode and not binary mode. ASCII mode is for text files such as html documents, binary mode is for image.
FTP: www.YourDomainName.com
Username: YourUserNameYouSignedUpWith
Password: YourPasswordYouSignedUpWith
How about long file names in unix ?
Some of the file names that came set up with my server are too long for me to download to use on my windows system. If I want to edit or use these files on my system, how would I do it? With the old Windows standard name, you will need to rename these files when you download them to your pc. When you ftp them back to your Virtual Server you can rename them to their original names.
Can I install redirection URL's ?
Yes. You can have a page automatically forward browsers to another page. For example, you want everyone that hits page "http://www.xyz.com" to be forwarded automatically to "http://www.abc.com". You can do this by using "Client Pull". On your old page you put in a tag to "pull" the client through to the new page. This is the page you should put on "http://www.xyz.com" to forward people automatically to "http://www.abc.com":<META HTTP-EQUIV="Refresh" CONTENT="0"
URL="http://www.abc.com"> <title>We moved!<title>
Sorry! We have moved to <a href="http://www.abc.com">http://www.abc.com<a>
How do I password-protect a directory ?
What you are trying to do is called "user authentication". The best place to learn about user authentication is from the source (NCSA). They have a very easy to understand tutorial at the following URL:
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html
You should be aware of one subtle difference with virtual server system - when you set up your .htaccess files, you will specify the AuthUserFile or AuthGroupFile with respect to your home directory.
However, when you set up your .htpasswd files, with the htpasswd command you will need to prepend "/usr/home/LOGIN_NAME" to the directory specification.
For example, let's say you have a subdirectory "Protect" in your main htdocs area. You would like to restrict access to this directory. This can be done by first creating a ".htaccess" file in the "Protect" subdirectory such as the following:
AuthUserFile /etc/.htpasswd
AuthGroupFile /dev/null
AuthName Protect
AuthType Basic
<Limit GET>
require user william
</Limit>
This ".htaccess" file will only allow one user, "marc", to access the directory "Protect" - provided the correct password is given. The password is to be stored in the "/etc/.htpasswd" file (see the AuthUserFile declaration in the ".htaccess" file above).
To set up the password for "12345" issue the following
command:
htpasswd -c /usr/home/[login]/etc/.htpasswd william
Please note:
To run the htpasswd command correctly, you will need to prepend the "/usr/home/[login]" path to the password file specification (substitue your login name for [login]). You do not need the "/usr/home/[login]" path in the ".htaccess" file.
|