User web pages on web-docs.gsi.de
These instructions will become effective on 27/06/2012. Until then the
old instructions still apply: .
As a Linux user at GSI you may create your own web pages on
web-docs.gsi.de. The pages will be available world-wide as
http://web-docs.gsi.de/~userid/.
This location corresponds to the
web-docs/ subdirectory in your
home directory (
/u/userid/ or
/misc/userid/), which is in fact a symlink to
/WWW/userid/ that is in turn auto-mounted from the corresponding NFS server.
When you put a html file called
index.html in this directory, it will be automatically accessible as
http://www-linux.gsi.de/~userid/.
A good online reference for HTML is
http://www.selfhtml.org/ (available in German, French, Spanish and Japanese, but only partly in English).
Usage notes
- For stability reasons no central FileSystems are accessible from the web server.
- Quotas: the size limit for each individual web-docs is 3 GiB?.
CGI scripts
You may also put shell, perl or python scripts or even binary executables inside your
web-docs. These scripts will be executed by the web server as long as they have a
.cgi,
.pl or
.py extension and have proper permissions i.e. file and the containing directory must be writable to the owner exclusively.
The scripts will be executed with the privileges of the account they belong to. There's a 5 minute limit on the total CPU usage for each script (as we had some nasty infinite loops in the past).
You can put
PHP files in your
web-docs. They will be run with the your own privileges like other CGI scripts.
Restricting HTTP access to your web-docs
You can restrict the access to your web-docs via
.htaccess files - webserver config sniplets that apply to the directory they reside in and its subdirectories.
Limiting access by IP
To limit the access to your web-docs to GSI machines put this into your
.htaccess
Order deny,allow
Allow from .gsi.de
Deny from All
Add authentication to your web-docs
Put this in our
.htaccess
AuthType Basic
AuthName "Descriptive text shown in the authentication dialog"
AuthUserFile .htpasswd
Require vaild-user
Then create the password file
.htpasswd in the same directory with
htpasswd -c .htpasswd username. You'll be prompted for the password.
For further information please have a look at
http://httpd.apache.org/docs/current/howto/auth.html
--
ChristopherHuhn - 2005 - 2012
to top