Webhosting Subdomains: Difference between revisions

From AAISP Support Site
mNo edit summary
m (Sub-directories are probably peers of www.)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Sub domains are handled specially on the server. Each sub domain on the web appears as a sub directory in the filesystem space. The web site will have a root directory structure that you can access by ftp. If you have a password for the main domain (e.g. example.com) but logged in by ftp to a sub domain (e.g. www.example.com) then you find yourself in a www sub directory. Each directory in the file system is treated the same as a sub domain. So if you made a sub directory 'test' with a directory in it called 'thisisa' and then set up a suitable DNS record for thisisa.test.example.com (a CNAME to www-server.uk.) then that would refer to the '/test/thisisa' directory. Mostly people only use www as a sub domain and that is the directory in which they put their site. Obviously sub directories also work as normal, i.e. the previous example would work when accessed as test.example.com/thisisa.
[[File:Couk.png|link=:Category:Webhosting]]


Remember that 'www.' is a sub domain already, so other sub domains probably shouldn't be under www.
Sub domains are handled specially on the server. The web site will have a root directory structure that you can access by ftp. If you have a password for the main domain (e.g. example.com) but logged in by ftp to a sub domain (e.g. www.example.com) then you find yourself in a www sub directory. Each directory in the file system is treated the same as a sub domain. So if you made a sub directory test with a directory in it called thisisa and then set up a suitable DNS record for thisisa.test.example.com then that would refer to the /test/thisisa directory. Mostly people only use www as a sub domain and that is the directory in which they put their site. Obviously sub directories also work as normal, i.e. the previous example would work as test.example.com/thisisa.


==Other Webhosting pages==
It is also possible to update the site using rsync. This is very efficient if you have a master copy and want to update the web server from it. This is also a good idea as we cannot guarantee never to lose your web site so you should keep a copy. Use rsync to your web site name, e.g. www.example.com and the rsync name and rysnc section which is your domain, e.g. example.com and your password for that domain. if you have set a password for a sub domain use the rsync name as the sub domain.

==Other Webhosting pages:==
<ncl style=bullet maxdepth=5 headings=bullet headstart=2 showcats=1 showarts=1>Category:Webhosting</ncl>


[[File:aa-button.png|link=http://aa.net.uk/domains-webspace.html|Webhosting Service page on our main website]]
[[File:aa-button.png|link=http://aa.net.uk/domains-webspace.html|Webhosting Service page on our main website]]

Latest revision as of 10:38, 31 December 2023

Sub domains are handled specially on the server. Each sub domain on the web appears as a sub directory in the filesystem space. The web site will have a root directory structure that you can access by ftp. If you have a password for the main domain (e.g. example.com) but logged in by ftp to a sub domain (e.g. www.example.com) then you find yourself in a www sub directory. Each directory in the file system is treated the same as a sub domain. So if you made a sub directory 'test' with a directory in it called 'thisisa' and then set up a suitable DNS record for thisisa.test.example.com (a CNAME to www-server.uk.) then that would refer to the '/test/thisisa' directory. Mostly people only use www as a sub domain and that is the directory in which they put their site. Obviously sub directories also work as normal, i.e. the previous example would work when accessed as test.example.com/thisisa.

Remember that 'www.' is a sub domain already, so other sub domains probably shouldn't be under www.

Other Webhosting pages

Webhosting Service page on our main website