WD on a Synology Diskstation

If anyone is using a Synology Diskstation as a web server, this may be useful information.

I’ve been running Weather Display on a Synology Diskstation for several years now without a problem. The NAS box has webserver software operating with a fixed IP.
Over the period of time Synology provide software updates which have not affected anything. THAT CHANGED when they issued an update from version 5.2 of the DiskManager to version 6.0.
The WD clientraw files are read from the root of the webserver by NZ Local Weather Network every minute or so to update their map information. After the update, their script could no longer read any of the text files. The text files appeared to be within a frame on some browsers or just as a html file.

It appears that the update replaced the web configuration file or wiped the existing one. The early version obviously had a command to keep text files in their original raw state, whereas after the update, all files with the extension .txt were read as html. After much consultation with Dr Google I found the solution. If you end up in the same situation, do the following:-

  1. If the file .htaccess doesn’t exist, create it in the web directory using notepad or similar. Otherwise open it for editing.
  2. Add the line {AddType application/octet-stream txt} (without the curly braces).
  3. Save the file (not as a text file)

Hope this may be of help to someone.

Tony C
http://www.portrobinson.net.nz/Weather.html

This is something that