NOTE THIS:
External websites of university researchers and units (e.g. faculties, service and research units), projects and events are implemented using the Drupal publishing system. Related instructions for staff are in Patio, i.e. the university intranet.
If you are the administrator of a static html site that is not a Drupal page on www.oulu.fi and you have received a web folder from the ICT Services, this instruction is for you.
Connect the network folder to your computer’s network drive
Your machine must be on the university network or VPN connected to it.
In the example “X” there is some free network drive and “example” is the name of the network folder.
- Open This PC icon
- Then right-click This PC and select More and Map network drive…
- Choose the drive X and write the folder name:
\\honka\oywww\example - Press Finish button.
Restrict access to pages
You can choose to set a username and password for individual pages, or limit their view of the world.
The restriction on the use of web pages is based on the .htaccess file, which can be done in each html directory. The .htaccess file only affects the directory it is in.
Your machine must be connected to the koivu.oulu.fi server with SSH Client and do these in the SSH window.
In this example “username” is your useraccount.
- Create the password file:
htpasswd -c username /www2/htaccess/ailiteracy.htpasswd - Create the .htaccess file in each directory you want:
AuthName username
AuthType Basic
AuthUserFile /netservices/virtual/htaccess/ailiteracy.htpasswd
AuthGroupFile /dev/null
require valid-user