Host a Web Site

From OpenFSG

Jump to: navigation, search

How to use Web Front Pages and Aliases with the FSG-3

Creating a Dynamic DNS account (e.g. no-ip.com) and setting up a host

Remark: You need to have a Dynamic DNS account, e.g. at www.no-ip.com. Continue with step "Login to your DDNS account" if you already have one.

  1. Browse to http://www.no-ip.com to create a No-IP account (valid e-mail address required).
  2. Click on „Sign-up now!“ next to the Login button. Enter the required information in the next window and click on “Sign-up Now!”.
  3. You will get an e-mail from No-IP requesting you to activate your account (might take some minutes). In this e-mail you will find a link to activate your account. Click on this link.
  4. Login to your No-IP account and create at least two hosts.


Creating a new host

  1. Select „Hosts/Redirects“ -> „Add“ from the menu.
  2. Enter your desired name as „Hostname“ and select a domain name, e.g. „zapto.org“. Choose a different hostname or domain if the selected name is already in use.
  3. Click on “Create Host” to finish creating the first host.
  4. Repeat this step to create a second host with a different hostname.
  5. To verify your settings, click on „Hosts/Redirects“ -> “Manage“.

Setting up your FSG

  1. Go to „Services“->“Dynamic DNS“
    • Select „no-ip.com“ as service.
    • Enter one of the hosts you created in step "Creating a new host" (e.g. “MyFSGConfig.zapto.org”).

Remark: With this host you can reach the configuration page from outside, e.g. via HTTP/FTP/SSH

    • Username: the e-mail address you used for registration at no-ip.com
    • Password: your no-ip password
    • Repeat password: your no-ip password again
  1. To access the configuration from outside, you need to activate „Open HTTP Server to the outside...“ and „Access for Configuration pages from the Outside“ in the menu „Services“ -> “HTTP Server“.

Setting up Web Front Pages

  1. Create a new folder in the FSG Configuration, e.g. “Homepage”.
  2. In „Services“ -> “HTTP Server“ select „New“.
  3. Enter a name (e.g. „My_Homepage“).
  4. Enter the second host you created in step 4 in "Creating a new host" as “DNS Name” (e.g. „MyFSGHP.zapto.org“). Remark: You can use the same host as entered in step 2.1., but please be aware that in this case your configuration page can only be accessed by using your WAN IP!
  5. Enter any port in „Port“ (we recommend using port 80, otherwise you have to enter e.g. http:// MyFSGHP.zapto.org:81/ where 81 is the port you selected).
  6. As „Folder“ select the folder you created in step 1 of this chapter.
  7. If you are hosting a PHP driven website, check the box 'enable PHP'. You also should be running MySQL, configure the appropriate files (e.g. config.php) to point to the database etc.
  8. Click on „Apply“ (HTTP Server will be restarted afterwards).
  9. Create an index.html in the selected folder. This html page will automatically be opened when accessing your host (e.g. „http:// MyFSGHP.zapto.org“).

Web Front Page Aliases

  1. After setting up your Web Front Page, you can create Aliases for your folders. In the configuration, activate the checkbox of your Web Front Page and click on „Properties“. In the properties select “New”.
    • Enter a name for the Alias. This can be any name you like.
    • As „Alias“ enter an abbreviation (e.g. „mp3“)
    • As „Path“ enter the path to your folder (e.g. „files/test/user10/music/“)

Now you can reach your path (e.g. „files/test/user10/music/“) with your alias (e.g. http://MyFSGHP.zapto.org/mp3“). NOTE: When the entered path ends with a “/” (e.g. „files/test/user10/music/“), the user must enter username and password when accessing the alias address (e.g. http://MyFSGHP.zapto.org/mp3“). When the entered path does not end with a “/” (e.g. „files/test/user10/music“), the user will not be prompted for username and password when accessing the alias address (e.g. http://MyFSGHP.zapto.org/mp3“).

FAQ

Q: Must both hosts be in the same domain?
A: No, but they must be registered at the same Dynamic DNS provider.
Q: Can I use different hosts from different providers?
A: No, you can only use one provider, but different domains from the same provider can be used.

Personal tools