Zum Inhalt springen

Services/Homepages

Aus Technik-Wiki

Personal websites at the FB3

All users with an account can activate their own website (personal web presence) on the WWW themselves.

Setting Up a Homepage After Successful Activation

Files for the personal web presence must be placed in the following directory (also see Accessing files in the FB3 network):

/home/wwwu/$USER/public

$USER represents the respective login name (username) here. The homepage can then be accessed on the WWW via the following URLs:

https://user.informatik.uni-bremen.de/$USER/
https://user.math.uni-bremen.de/$USER/
https://user.fb3.uni-bremen.de/$USER/

If a file index.html or index.php exists in the WWW directory, it will be displayed when the mentioned URL is accessed; otherwise, the contents of the directory will be listed instead.

No symbolic links should be created in the WWW directory that point outside the directory (e.g., to the home directory), as this may affect the stability of the web server.

Logging Access to Personal WWW Pages

All users have access to an excerpt from the log file (access log) of the web server, which lists the accesses to their own web presence. The log file excerpts are available for successful accesses in

/home/userlog/$USER

and for error messages in

/home/userlog/${USER}_err

The log files are updated hourly and archived every four weeks as username<date>.gz and username_err<date>.gz (the file is overwritten each time).

Disk usage

The current quota for the web presence per user is 500 MiB for students and can be increased with a plausible justification.

Creating HTML websites

Assistance in creating HTML pages can be found, for example, in the W3Schools HTML Tutorial. For users who like to create PHP pages, this PHP manual is recommended.

Creating CGI scripts

The CGI scripts of users are executed on the FB3 web server via a so-called SuExec wrapper. This allows users to provide their own CGI scripts (and thus HTML forms) without compromising the security of the web server. The scripts run with the rights of the respective account. To provide your own CGI script, the desired script must be copied into the existing cgi-bin directory and made executable:

cp myscript.pl /home/wwwu/username/public/cgi-bin
chmod 755 /home/wwwu/username/public/cgi-bin/myscript.pl

The script can now be run via the following URLs:

https://user.informatik.uni-bremen.de/$USER/cgi-bin/myscript.pl
https://user.math.uni-bremen.de/$USER/cgi-bin/myscript.pl
https://user.fb3.uni-bremen.de/$USER/cgi-bin/myscript.pl

Using a database