<?php
// Simple sub.php for testing
file_put_contents('/tmp/hook_debug.log',
    date('Y-m-d H:i:s') . " - Hook called\n",
    FILE_APPEND);

// Just authorize all requests
header('Content-Type: text/plain');
header('X-Accel-Redirect: /nchan_authorize_request');
echo "Authorized!";
exit;