Use HFS to host a website: Difference between revisions

From rejetto wiki
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== A webserver is defined by Wikipedia as: ==
Classic webservers are used to publish 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 operate in a simple way: you just need to indicate the location of a folder that contains files to be published.


You Need to be in Expert Mode.


'''This article will focus on explaining how to use HFS as a web server for web sites.'''
You can also do this with HFS. Just follow these steps:
# In the Virtual File System window, right-click on root (the little house) and click ''bind root to real-folder''.
# Select the folder containing files for the website.
# Right-click root again -> Advanced, and click ''default file mask''.
# Type '''index.htm*'''.


The name "index.htm*" is normally ok, but your particular main page file may have a different name, such as "default.html"; check it out.


== Setting your default page as a Web Site ==
HFS does not support server side scripting such as PHP or ASP but rather its own proprietary scripting called [[HFS:_Template_macros|macros]].
For when you want the default homepage to open a file other than the default HFS  HTML Template.
Macros must be done in the template however, as they will not be executed in HTML files that HFS simply sees as files to be downloaded, not processed.


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:
; Disclaimer : HFS is not designed to publish websites.
 
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.)

Latest revision as of 02:00, 4 September 2011

Classic webservers are used to publish one or more websites. They operate in a simple way: you just need to indicate the location of a folder that contains files to be published.

You Need to be in Expert Mode.

You can also do this with HFS. Just follow these steps:

  1. In the Virtual File System window, right-click on root (the little house) and click bind root to real-folder.
  2. Select the folder containing files for the website.
  3. Right-click root again -> Advanced, and click default file mask.
  4. Type index.htm*.

The name "index.htm*" is normally ok, but your particular main page file may have a different name, such as "default.html"; check it out.

HFS does not support server side scripting such as PHP or ASP but rather its own proprietary scripting called macros. Macros must be done in the template however, as they will not be executed in HTML files that HFS simply sees as files to be downloaded, not processed.

Disclaimer
HFS is not designed to publish websites.