AVideo icon indicating copy to clipboard operation
AVideo copied to clipboard

No idea. but I suspect it is something regarding your SSL

Open GreenDragonTavern opened this issue 2 years ago • 8 comments

No idea. but I suspect it is something regarding your SSL

I will need more info about what you are doing and logs.

please open a new issue regarding this new problem

Originally posted by @DanielnetoDotCom in https://github.com/WWBN/AVideo/issues/6577#issuecomment-1124200624

GreenDragonTavern avatar May 12 '22 14:05 GreenDragonTavern

Hello Daniel,

There were two issues, one on AVideo server, one on Remote Live Server, and partly SSL related. Initially had the following redirect from 80 to 443 on AVideo server:

<VirtualHost *:80> RewriteEngine on RewriteRule ^ - [E=protossl] RewriteCond %{HTTPS} on RewriteRule ^ - [E=protossl:s] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </VirtualHost>

Went to another site I set up and there was no redirection on port 80, same as 443 without the SSL. This site has AVideo and Live on same metal box but guessing that makes no difference. Removing redirection on port 80 solved one problem. The other and in looking at live nginx error log, it was showing multiple client ip addresses from both the live and remote AVideo server. Both have multiple IP's bound and it was the primary on both machines that errored out. Adding "allow publish" with primary IP's in "application adaptive" section did the trick, and all worked as advertised.

Thanks again for all you do on this platform.

GreenDragonTavern avatar May 12 '22 14:05 GreenDragonTavern

You should google for that but I will tell you what I use for myself

<VirtualHost *:80>
    DocumentRoot "/var/www/html/AVideo"
    ServerName mydomain.com
    ServerAlias www.mydomain.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =mydomain.com [OR]
RewriteCond %{SERVER_NAME} =www.mydomain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

the ServerName is what makes it catches only the specific domain

DanielnetoDotCom avatar May 12 '22 15:05 DanielnetoDotCom

Just tried yours and still doesn't work with remote nor local Live server. Live never shows up on AVideo when redirecting http to https.

GreenDragonTavern avatar May 12 '22 17:05 GreenDragonTavern

Make sure you did not add any redirect on .htaccess or nginx.conf

DanielnetoDotCom avatar May 12 '22 18:05 DanielnetoDotCom

I don't touch any of your .htaccess files. Nginx listens for rtmp on 1935, and https on 8443, that's it and no redirects.

GreenDragonTavern avatar May 12 '22 18:05 GreenDragonTavern

You have this in your nginx.conf

on_publish http://tube.ourfreenation.org/plugin/Live/on_publish.php;
on_publish_done http://tube.ourfreenation.org/plugin/Live/on_publish_done.php;
on_play http://tube.ourfreenation.org/plugin/Live/on_play.php;
on_record_done http://tube.ourfreenation.org/plugin/Live/on_record_done.php; 

if you want to redirect http://tube.ourfreenation.org to https://tube.ourfreenation.org without affecting your RTMP, try to use the IP instead of the domain on the Nginx on_* parameters

Maybe I am misunderstanding what is your issue. if you do not mind please explain again.

DanielnetoDotCom avatar May 12 '22 18:05 DanielnetoDotCom

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 13 '22 01:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 13 '22 23:07 stale[bot]