owncloud: support MOD_X_ACCEL_REDIRECT_ENABLED

This lets downloads from the file app work.
owncloud: fix regex in nginx config

/cloud/index.php/apps/files/ajax/scan.php would not be parsed right because of two .php's