Webhosting Special Pages And Directories: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
m Turn text into link Tags: Mobile edit Mobile web edit |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
You can create any files and directories in your /www/ directory. If you want to provide a web site just under your domain name, e.g. http://testing.me.uk/ then there are some restrictions on directories you can use - you cannot use bin, etc., lib, tmp, or usr. These are also unavailable as sub domains (e.g. you cannot have http://bin.testing.me.uk/. See |
You can create any files and directories in your /www/ directory. If you want to provide a web site just under your domain name, e.g. http://testing.me.uk/ then there are some restrictions on directories you can use - you cannot use bin, etc., lib, tmp, or usr. These are also unavailable as sub domains (e.g. you cannot have http://bin.testing.me.uk/. See [[Webhosting Redirecting]] for redirection if you want http://testing.me.uk/ to redirect to http://www.testing.me.uk/ |
||
These restrictions are because the system creates a fake root environment for your scripts to use. This is set up automatically the first time you use ftp to access the site. |
These restrictions are because the system creates a fake root environment for your scripts to use. This is set up automatically the first time you use ftp to access the site. |
||
| Line 5: | Line 5: | ||
==Index Pages== |
==Index Pages== |
||
| ⚫ | |||
In any directory, including the main /www/ directory, you can have an index (called index.html ). This is displayed if someone goes to the site or directory without specifying a file name. e.g. http://www.testing.me.uk/fred/ will access /www/fred/index.html on your web site. |
In any directory, including the main /www/ directory, you can have an index (often called index.html ). This is displayed if someone goes to the site or directory without specifying a file name. e.g. http://www.testing.me.uk/fred/ will access /www/fred/index.html on your web site. |
||
| ⚫ | |||
==Sub-domains== |
==Sub-domains== |
||
| Line 14: | Line 14: | ||
==Password files== |
==Password files== |
||
The file password.txt in any directory is |
The file password.txt in any directory is special - see passwords. See more here: [[Webhosting Password Protected Areas]] |
||
==Log Directory== |
==Log Directory== |
||
The directory called weblog is |
The directory called weblog is special as it is used for web logs, see: [[Webhosting Weblogs]] |
||
The file errlog.txt in the top level directory is special, see [[Webhosting Perl and CGI Scripts]] |
|||
==Custom error pages== |
==Custom error pages== |
||
You can create your own customised error pages if you wish. Simply create a page that is the error number followed by .html, e.g. 404.html will be the page not found error page. This applies to any requests in the same or lower directories unless a lower directory also has a 404.html. |
You can create your own customised error pages if you wish. Simply create a page that is the error number followed by .html, e.g. 404.html will be the "page not found" error page. This applies to any requests in the same or lower directories unless a lower directory also has a 404.html. |
||
==HTTPS Redirect== |
==HTTPS Redirect== |
||