我目前正在尝试设置HTTP服务器文件夹,以删除用作HLS的.ts或.mp4文件。 我可以毫无问题地浏览该文件夹,但是流编码器抱怨http服务器不支持PUT或POST作为方法(正式的HLS方法)。
我已经阅读了过去两天的内容,每个人似乎都指出我需要一个php脚本来处理放置和发布的事实。这是我完全迷路的地方。其他人则说我在虚拟主机httpd conf文件中需要一些指令,但是尝试了一下,但也没有用。
<Directory /var/www/html/cosmin/>
AllowOverride All
<Limit GET POST PUT HEAD OPTIONS>
Require all granted
</Limit>
<LimitExcept GET POST PUT HEAD OPTIONS>
Require all denied
</LimitExcept>
</Directory>
我真的认为这可以比这更简单。
有人有例子或知道该怎么做吗?
我想要做的就是能够将一些文件拖放到http服务器文件夹中。我稍后可以处理CORS,以便能够播放文件。
如果需要其他详细信息,请告诉我,我可以在此处发布。
访问日志:
::1 - - [22/Oct/2019:16:05:10 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.4.16 (internal dummy connection)"
::1 - - [22/Oct/2019:16:05:11 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) PHP/5.4.16 (internal dummy connection)"
192.168.1.72 - - [22/Oct/2019:16:06:41 +0100] "GET /cosmin/ HTTP/1.1" 200 675 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"
192.168.1.24 - - [22/Oct/2019:16:33:18 +0100] "PUT /cosmin/audio_0_eng/volume_2946_0000/segment_0000.ts HTTP/1.1" 405 300 "-" "KulaByte/5.0"
192.168.1.24 - - [22/Oct/2019:16:33:19 +0100] "PUT /cosmin/video_5/volume_2946_0000/segment_0000.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:18 +0100] "PUT /cosmin/video_3/volume_2946_0000/segment_0000.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:18 +0100] "PUT /cosmin/video_1/volume_2946_0000/segment_0000.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:18 +0100] "PUT /cosmin/video_0/volume_2946_0000/segment_0000.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:18 +0100] "PUT /cosmin/video_2/volume_2946_0000/segment_0000.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:19 +0100] "PUT /cosmin/video_4/volume_2946_0000/segment_0000.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:31 +0100] "PUT /cosmin/video_3/volume_2946_0000/segment_0001.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:31 +0100] "PUT /cosmin/video_1/volume_2946_0000/segment_0001.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:31 +0100] "PUT /cosmin/video_2/volume_2946_0000/segment_0001.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:31 +0100] "PUT /cosmin/video_4/volume_2946_0000/segment_0001.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:31 +0100] "PUT /cosmin/video_0/volume_2946_0000/segment_0001.ts HTTP/1.1" 405 296
192.168.1.24 - - [22/Oct/2019:16:33:31 +0100] "PUT /cosmin/video_5/volume_2946_0000/segment_0001.ts HTTP/1.1" 405 296