If you have a developer a/c you will need to manually create virtual web hosts to enable you to host websites.
Log into the control panel and choose "Unix Hosting". Select the tab to add a virtual web host. In this example we will assume that your unix user name is "joe" and you want to use the domain name "example.dom".
You will be presented with three fields. Firstly, you will have the domain name. You must enter the "domain name" you want to have as the "web address". So, if you want to type www.domain.dom into your web browser, please enter that in the "domain name" field.
Secondly, you will need to specify the "htdocs" directory. This is the directory you will place your html and php files into. You should store all websites in the "webs" directory in your user area, and create a directory for each virtual web host.
If you login using "ftp" or "sftp" then you may find that the inital directory you are placed in is within a /nfs1/" directory. The "/nfs1" area is identical to the "/home" so carry on as normal!
/home/joe/
-> webs/
-> www.example.dom/
-> htdocs
-> logs
-> www.example2.dom/
-> htdocs
-> logs
You will need to create the www.example.dom directories, and also the associated "htdocs" and "logs" subdirectories. You can do this using your ftp client, or through the unix login.
In Joe's case, for his example.dom domain, he would use the following htdocs directory:
/home/joe/webs/www.example.dom/htdocs/
For more information on your user area's structure, see our other article.
Thirdly, you will need to specify the logs directory. This is the full path to the directory in which we will place your logs every morning.
In Joe's case, for his example.dom domain, he would use the following htdocs directory:
/home/joe/webs/www.example.dom/logs/
Finally, note that you must create one virtual web host for every web address you want to use. For example, if you want both http://www.example.dom/ AND http://example.dom/ to work, you must create virtual web host entries, one for each domain, using identical htdocs and logs directories.
Further information on web logs is available.
Uploading Files
To upload your web pages, you must create an ftp user name and password under "ftp access" in the control panel and upload your files to our ftp server ftp.gradwell.net.
Please note FTP accounts can take upto 60 minutes to be created and become live.
Virtual Hosting Example
For domains where you desire to have http://.dom as well as http://www..dom requires two entries on the Unix Hosting page.
These would be:
domain name htdocs directory
www.myweb.com /home/snowdancer/webs/www.myweb.com/htdocs
myweb.com /home/snowdancer/webs/www.myweb.com/htdocs
The directory under /webs/ does not have to be called "www.domain.dom", it could just as well replace the directory "www.myweb.com" with a directory called say, "myweb" then the path becomes
/home/snowdancer/webs/myweb/htdocs.
This makes the Unix Hosting entries:
domain name htdocs directory
www.myweb.com /home/snowdancer/webs/myweb/htdocs
myweb.com /home/snowdancer/webs/myweb/htdocs
For future reference should you register say "mynewweb.org" and wish it to point to exactly the same pages you can just add, domain name htdocs directory
www.myweb.com /home/snowdancer/webs/myweb/htdocs
myweb.com /home/snowdancer/webs/myweb/htdocs
www.mynewweb.org /home/snowdancer/webs/myweb/htdocs
mynewweb.org /home/snowdancer/webs/myweb/htdocs