iCIS Intra Wiki
categories:             Info      -       Support      -       Software       -      Hardware       |      AllPages       -      uncategorized

Webpage

From ICIS-intra
Revision as of 17:07, 2 December 2026 by Harcok (talk | contribs) (→Website hosted on gitlab pages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Website hosted on gitlab pages

You can host a website via a gitlab pages where on a git push you can generate from the gitlab source a website as static html pages in the public/ folder.

C&CZ can register a DNS name to this website, for example https://example.cs.ru.nl .

To generate the static pages there are many tools you can use for this. In the following table we give an overview which tool to choose for which type of website:

Tool Small set of characteristic features Why that matches its strength
Hugo Custom layouts/templates, menus, blog/news, arbitrary pages, image processing, themes, taxonomies Complete websites — you control the site's structure and appearance rather than being constrained to a documentation layout
Sphinx + MyST Cross-references, API documentation, citations, glossary, equations, footnotes, multiple output formats (HTML/PDF/EPUB) Technical documentation — excellent when the relationships and semantics of the documentation matter
MkDocs Markdown pages, YAML navigation, search, sidebar, themes, admonitions, tabs, code highlighting Documentation websites — simple Markdown + polished documentation UI
mdBook SUMMARY.md, hierarchical chapters, sidebar navigation, search, code blocks, book-like navigation. Example: https://phd-information.science.ru.nl/ Books/manuals — its central concept is a structured sequence of chapters
Quartz Wikilinks, backlinks, graph view, tags, full-text search, folder/page structure. Example: https://ndl.cs.ru.nl/ Knowledge bases — optimized for discovering relationships between pieces of information

Personal webpage

All employees can have their own web page in the www.cs.ru.nl domain. However, this is not implemented by default. The scientific programmers can do this for you.

If it has been set up, you can reach it via the web like this:

  • www.cs.ru.nl/<longname> (e.g. H.Kuppens, P.deVrieze etc.)
  • www.cs.ru.nl/personal/<login> or www.cs.ru.nl/~<login>

And you can maintain it like this:

  • university linux server (lilo.science.ru.nl) : 

       file access : /www/cs/live/htdocs/personal/<login>

  • windows : 

       smb access : \\www.cs.ru.nl\wwwcs\live\htdocs\personal\<login>

  • Mac/Linux

       smb access : smb://www.cs.ru.nl/wwwcs/live/htdocs/personal/<login>


Note: the logs of the web server are at /www/cs/live/logs/ or \\www.cs.ru.nl\wwwcs\live\logs\ or smb://www.cs.ru.nl/wwwcs/live/logs/
Note: the web server machine is wielewaal.science.ru.nl.

Web directory not writable anymore by web server

For security reasons the account that runs the web server cannot write files in the web directory. If you run web server scripts that need to write files, you have two options:

  • (preferred) Ask your scientific programmer to create a subdirectory for you in /www/cs/live/writable/ and write the files there.
  • Explicitely allow the web server account write access by using the setfacl command (the uid of this account is 10880, the username is not known on C&CZ terminal servers).

Paths on file server and web server are different

The web server directory is differently mounted on different servers :

  • login server lilo.science.ru.nl : /www/cs/
  • current web server : wielewaal.science.ru.nl : /var/www2/cs/

User Authorization on cncz web servers

On cncz web servers only the mod_auth_basic module is installed in the apache web server. The module mod_auth_digest is not installed.

So we cannot use digest authorization but must use basic authorization on cncz web servers.

How to use basic auth  :


 $ ssh lilo.science.ru.nl

 $ cd /www/cs/live/htdocs/personal/<username>/secure/

 # make .htpasswd file containing user accounts with md5 encrypted passwords
 # note: if htpasswd command is not installed one can also use
 #       the website : http://www.htaccesstools.com/htpasswd-generator/
 $ htpasswd -c .htpasswd <username>
 New password: xxxxxxxx
 Re-type new password: xxxxxxxx

 # make .htaccess file with the following content
 $ cat .htaccess
 AuthName "mysite"
 AuthType Basic
 # using path relative from ServerRoot
 AuthUserFile "live/htdocs/personal/<username>/secure/.htpasswd"

 require user <username>

Note: the directory used in the .htaccess file is that of the web server and not of the file server.