Logo
Explore Help
Register Sign In
streamer-tools/local-transcription
1
0
Fork 0
You've already forked local-transcription
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
50deaeae963e4c46e6438db08ee292473dd68226
local-transcription/server/php/data/index.php

6 lines
130 B
PHP
Raw Normal View History

Fix PHP-FPM compatibility and add server diagnostics Changes to .htaccess: - Removed php_flag and php_value directives (don't work with php-fpm) - Simplified DirectoryMatch to FilesMatch for .json files - Added note about configuring PHP settings in php.ini/pool config - More compatible with user directories Added diagnostic.php: - Tests PHP version, extensions, and configuration - Checks storage directory permissions - Tests Server-Sent Events (SSE) connection - Shows server API type (php-fpm vs mod_php) - Provides troubleshooting hints for common issues - Live SSE connection test with detailed logging Added data/index.php: - Blocks direct access to data directory - Returns 403 Forbidden Fixes: - php-fpm environments not respecting .htaccess PHP settings - DirectoryMatch issues in user directories - Hard to diagnose connection problems Usage: Navigate to diagnostic.php to troubleshoot server issues
2025-12-26 12:45:23 -08:00
<?php
// Block direct access to data directory
http_response_code(403);
header('Content-Type: text/plain');
die('Access Denied');
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 13ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API