How to publish your website

Page outline

More information

Introduction

This how-to gives you some quick instructions on how to publish static web pages. You will need this for parts of your reports, so that they are accessible to everyone.

Two different methods are described, you may choose any one of them. Of course you are free to host your web sites somewhere else as long as they're reliably reachable.

Using J2EE

One way to publish your website is to use the J2EE servers. This is as simple as copying your files to the following path:

/opt/j2eeXX/domains/domain1/docroot

You can see that there already exists a file index.html at that location that is displayed when the following address is requested:

http://lsir-cis-pcY.epfl.ch:80XX/

Just replace it with your pages, you can even add subdirectories. However, you should make sure that the names of subdirectories do not collide with those chosen for your web services (introduced in phase 2).

The only drawback of this method is that your web page will not be reachable from outside EPFL without a VPN connection. But since that will be the case for all your dynamic pages of phase 2 and 3, this doesn't really matter.

Using ic2.epfl.ch

Another way to publish websites has nothing to do with the machines that you use for this project but is available to every student that has a UNIX account at the IC faculty. Here are the steps you need to follow:

  1. Login to your UNIX account in IN1, IN3 or BC07 (running Linux) and make sure you are in your home directory.

  2. Make sure that your home directory is traversable by entering chmod o+x .. This is necessary for the web server to be able to access your web pages.

  3. Create a directory called public_html and give traverse rights to everybody with chmod o+x public_html.

  4. Copy any files and directories you want to be accessible to the public_html directory. Make sure that files have read permissions (o+r) and directories have at least traverse permissions (o+x).

Now you should be able to access your web pages by using the following address (login is your UNIX login name):

http://ic2.epfl.ch/~login/

Copyright © Martin Rubli & Patrik Bless – Last change:
This page uses valid XHTML 1.0 Strict and valid Cascading Style Sheets, Level 2. This page uses valid XHTML 1.0 Strict. This page uses valid Cascading Style Sheets, Level 2.