WWBN / AVideo-Storage

Storage Server for AVideo Platform Open-Source
26 stars 37 forks source link

Disable directory browsing #24

Open akhilleusuggo opened 3 years ago

akhilleusuggo commented 3 years ago

https://github.com/WWBN/AVideo-Storage/blob/2e6dba59b16581a959f92312c8f43700d37745e3/.htaccess#L14

This line is giving me too many error logs, Removing the "minus* sign" fixes my problem.

AH01276: Cannot serve directory /var/www/html/AVideo-Storage/videos/xxxxxxxxxxx65.92760120/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

This issue is related to https://github.com/WWBN/AVideo/issues/5680

DanielnetoDotCom commented 3 years ago

Disable directory browser is very important for security reasons.

akhilleusuggo commented 3 years ago

then there's something wrong with the script.

AH01276: Cannot serve directory /var/www/html/AVideo-Storage/videos/xxxxxxxxxxx65.92760120/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

DanielnetoDotCom commented 3 years ago

but there is no reason to access the videos directory without a file why do you want to access that?

akhilleusuggo commented 3 years ago

@DanielnetoDotCom is the Local Server who tries to access to pull the tags data. This error spams when you refresh almost any page having the tags option enabled.

DanielnetoDotCom commented 3 years ago

"Local Server who tries to access to pull the tags data." I am not sure what that means

akhilleusuggo commented 3 years ago

@DanielnetoDotCom The server checks the maximum resolutions of the videos

image

DanielnetoDotCom commented 3 years ago

I am also using this configuration and I cannot see this error on my side.

what type of videos is rising those errors?

how did you upload them (encoder/direct/embed)?

DanielnetoDotCom commented 3 years ago

I just realize you are talking about the Storage, sorry about that.

I will review this correctly

akhilleusuggo commented 3 years ago

Yes, the Storage not local. I encoded them via normal encoding. No embed, just default ffmpeg encoding via the encoder, and stored on YPT-Storage.