Web hosting

We provide web hosting for personal and institutional homepages. All CIP users can upload a personal homepage. PHP is available.

The URL of your homepage is http://users.ph.tum.de/<FULL NAME or LOGIN>. Your homepage is empty when your account is created.

Instructions for creating a webpage

If you want to upload a homepage please place it in the directory /WWW/users/<LOGIN>/ on any CIP workstation. Your front page should have the filename index.html.

If you need instructions on creating web pages, we recommend the excellent SELFHTML guide.

Limiting access to certain directories

You can limit access from the internet to certain directories using the htaccess mechanism.

In the following example we show how to limit access to http://users.ph.tum.de/<FULL NAME or LOGIN>/secure.

  1. Create the file .htaccess in the directory /WWW/users/<LOGIN>/secure/ with the following contents.
    AuthType Basic
    AuthName test
    AuthUserFile /WWW/users/<LOGIN>/secure/.htpasswd
    <Limit GET POST>
    require user joe
    </Limit>
    
  2. Make /WWW/users/<LOGIN>/secure/ your working directory and execute:
    htpasswd -c .htpasswd joe
    
    Enter the desired password.

From now on http://users.ph.tum.de/<FULL NAME or LOGIN>/secure should only be accessible with the username joe and the password you entered in the second step.

You can also restrict access by the domain name of the requesting client. If you want to do that replace the <Limit> section of the above example with the following code.

<Limit GET POST>
order deny,allow
deny from all
allow from tu-muenchen.de lrz-muenchen.de
</Limit>
This will limit the access to clients in the .tu-muenchen.de and .lrz-muenchen.de domains. Be advised that this kind of access protection is not very secure.

More information is provided in the Apache web server manual.

 
r1 - 14 Oct 2008 - 19:33:41 - SebastianUrban > Services > WebHosting
This site is powered by the TWiki collaboration platformCopyright © Technische Universität München. (login)