Personal web site

From ICT science
Jump to navigation Jump to search

Staff, guests and students can use part of their personal storage to build and present a web site.

Conditions of use (‘small print’)

Individual users are personally responsible for the contents of their web site.

You should be aware of the intended use of personal webpages

You should be aware of the regulations relating to the safe use of ICT facilities at Utrecht University, available for staff (UU intranet) and students (UU student site).
You should also be aware of privacy regulations, which means (among other things) you should not publish personal data unless allowed; see the UU privacy statement and information on privacy on the UU intranet.

Regarding web sites on faculty web servers, please note that you are not allowed to:

  • publish material that infringes any laws or regulations, specifically concerning privacy or intellectual property, or
  • construct a web site that interferes with the functioning of our network or services, or
  • use your web site for private purposes with a commercial character.

We will periodically ask you if your personal website is still needed. Websites that are no longer needed or whose owner is not active are closed for access via the web. The information is retained, but can no longer be displayed via a web interface such as a browser.

Technical limitations

Setting up a web site on your personal storage

You can request a personal website in UU-TopDesk. Please state: Science Faculty personal website

When the site has been set up you will find a folder named www at the root of your personal storage. Files placed in this folder will be shown automatically through a web interface. The base address of your web site is

https://webspace.science.uu.nl/~solisid

where solisid is your own Solis-id, e.g.:

https://webspace.science.uu.nl/~f051317.

Some technical details

  • HTML pages should end with .htm or .html.
Default pages
in order of preference:
Index.html
index.html
Index.htm
index.htm
home.html
home.htm
Default.htm
default.htm
index.shtml
index.php
  • There is a number of file names that are recognized as default page names — see box on the right.
    A default page is the one shown when a browser request does contain a folder but no file name. If no default page is found, an error messages will be sent to the browser.
  • File names are case-sensitive, so Index.html and index.html are different files and may reside in the same directory; the web server will show Index.html as the default page, since it comes before index.html in the preferred order.
  • Take notice of the previous point also when distributing your web address. As an example, suppose you have a page file called MyPaper.htm. Then the correct web address would be https://webspace.science.uu.nl/~solisid/MyPaper.htm. The address https://webspace.science.uu.nl/~solisid/mypaper.htm would result in a 'page not found' error.
  • Your Solis-id is always written in lower case in web addresses.
  • The web server is Apache 2.4.37.
  • PHP 8.0.30 is activated for webspace and project pages.
  • .htaccess is activated.
  • Server Side Includes (SSI) are activated, but by default only for .shtml files (see the SSI-page on how to change this behavior).

Permissions

ACL's personal webspace:

nfs4_setfacl -a A::apache@soliscom.uu.nl:rx /science/users/solis-id
nfs4_setfacl -R -m D:fd:apache@soliscom.uu.nl:rxtncy  A:fd:apache@soliscom.uu.nl:rxtncy /science/users/solis-id/www
nfs4_setfacl -R -m D::apache@soliscom.uu.nl:rxtncy  A::apache@soliscom.uu.nl:rxtncy /science/users/solis-id/www

If you deleted your www directory the ACL's will be broken!

You need to run "webspace off <enter>" and "webspace on <enter>" on gemini.science.uu.nl to fix the broken ACL's. If that's not working for you please create a new TopDesk call

Upload directories

To create an upload directory, give user apache full permissions :

 % chmod 757 ~/www/upload/incoming/

In your php-script, copy (instead of rename) the uploaded file :

 $tmp_name = $_FILES [ 'file' ] [ 'tmp_name' ] ;
 if ( is_uploaded_file ( $tmp_name ) )
   { if ( copy ( $tmp_name, $dst ) )
       { chmod ( $dst, 0644 ) ; ...
       }
   }

Deny browsing users access to your uploaded files :

 % echo "Require all denied" > ~/www/upload/incoming/.htaccess
 % chmod 644 ~/www/upload/incoming/.htaccess

See also