Owncloud pdf viewer not working on synology NAS

I ran into this problem multiple times now. Unfortunately, it occured with a considerable delay, so I had forgotten about the solution the second and third time around.

The error is, that you click on a PDF-file in your owncloud web interface file listing and want to view it. But no luck – the viewer only gives you an error message.

Like, the error is caused by an Apache module called mod_xsendfile.
On my synlogy NAS it has a config file located at: /etc/httpd/conf/extra/mod_xsendfile.conf-user

This you need to edit to contain the following:

LoadModule xsendfile_module modules/mod_xsendfile.so
XSendFile on
XSendFilePath /var/services/web /var/services/homes
SetEnv MOD_X_SENDFILE_ENABLED yes
XSendFilePath /volume1

Especially the last directive is key to making owncloud work again.

Now restart the webserver with:
httpd -k restart

Hope this saved you some time. It will for me the next time I encounter this error. 😉

PS: found this fix at: https://forum.owncloud.org/viewtopic.php?f=26&t=21036

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s