How to enable automatic directory listing in my home directory?


 

Automatic directory listings are not shown by default on the users.jyu.fi server.

For privacy reasons, users.jyu.fi has disabled the automatic display of directory listings. This measure is intended to prevent unintentional data leaks. As a matter of priority, all content intended to be displayed on the web should be linked to an html page!

However, if you need automatic directory listing, you can restore it as follows:

Options +Indexes
  • Save the file as .htaccess (note the dot at the beginning of the name, not the .txt extension, in Notepad select All files from the drop-down menu) and check again after saving that the file name was saved correctly (and correct it if necessary).

NOTE! The Www server requires that the .htaccess file is in Unix format: line feed only (LF) and always line feed at the end of lines (including the last or only line!). An incomplete or incorrectly formatted file will not work as an .htaccess file!

For example, the default Windows text editor (notepad) does not automatically insert a line break at the end of the last line. AD-Windows machines often have a smarter text editor than notepad (e.g. notepad++), which can create and edit files in Unix format. The first time new files are saved, the file format must be selected (Save As...), but when editing old files, the program automatically recognises the file format and saves them in the same format.

  • Move the file to the folder of your choice in your home directory. On JYUNET Windows machines (AD machines), the home directory is used as the W drive. You can also transfer pages using a program such as WinSCP. 

The .htaccess file can also be created directly in its correct location on direct access machines (with ssh endpoint connection) using a unix editor (e.g. pico, which is a reasonably easy to use unix editor).

The above procedure will restore the automatic directory listing to the directory where the .htaccess file is located and all its subdirectories.

Despite the automatic directory listing blocking, no sensitive material may be stored in the home directory (W drive)!

Where can I find more instructions?

The HelpJYU service portal guides provide step-by-step instructions for individual user questions and problems. You can find more instructions by searching the top right corner of the HelpJYU portal.

Also check out the more extensive instructions for using digital services on the digital services website.