Use HFS to host a website: Difference between revisions

From rejetto wiki
Jump to navigation Jump to search
m (How does a webserver work moved to Use HFS to host a website: this is more like a specific tutorial, i will move it to the tutorial section)
No edit summary
Line 1: Line 1:
== A webserver is defined by Wikipedia as: ==
Classic webservers are used for publishing one or more websites.
''A computer that is responsible for accepting HTTP requests from clients, which are known as Web browsers, and serving them Web pages, which are usually HTML documents and linked objects (images, etc.).''
They work in a simple way: you just tell which folder contains files to be published, and it is done.


This is possible also with HFS. Just follow these steps:
# in the virtual file system, right click on the root(home) and click ''bind root to real-folder''
# select the folder containing the website files
# re-right-click the root and clic ''default file mask''
# type '''index.htm*'''


'''This article will focus on explaining how to use HFS as a web server for web sites.'''
Most times index.htm* is ok, but your main page file may have a different name, like default.html, check it out.
 
 
== Setting your default page as a Web Site ==
For when you want the default homepage to open your website other than the default HFS  HTML Template.
 
1. Right-click on the "home" icon in the "Virtual File System" and select "Default file mask". Enter the name of the file you want HFS to open on default:
 
For typical web pages, you would want to enter "index.html" into the text box. (You should be able to enter any file into the text box that you want.)
 
3. Copy all the files that your "index.html" needs to access into your "home" directory in the "Virtual File System". (this includes your "index.html" file) All files including pictures, other html files, and text need to be copied into your "home" "Virtual File System".
 
== Setting a sub-folder to open your Web Site ==
For when you want the sub-folder to open your web site.
 
1. Copy the folder with all the files that your web site needs to access into the "Virtual File System" as a Real folder. (this folder needs to includes your "index.html" file) All files including pictures, other html files, and text need to be copied into your "Virtual File System".
(probably also works with virtual folders)
 
2. Right-click on the folder in the "Virtual File System" and select "Default file mask". Enter the name of the file you want HFS to open when the folder is accessed.
 
For typical web pages, you would want to enter "index.html" into the text box. (You should be able to enter any file into the text box that you want.)

Revision as of 22:30, 13 April 2006

Classic webservers are used for publishing one or more websites. They work in a simple way: you just tell which folder contains files to be published, and it is done.

This is possible also with HFS. Just follow these steps:

  1. in the virtual file system, right click on the root(home) and click bind root to real-folder
  2. select the folder containing the website files
  3. re-right-click the root and clic default file mask
  4. type index.htm*

Most times index.htm* is ok, but your main page file may have a different name, like default.html, check it out.