lerxstrulz
New Member
Hi,
I'm trying WCS on Ubuntu 16.04 (I know 18.04 is recommended) and have verified my java install as well as glibc. I also received my trial license today.
I am setting up reverse proxy through apache to WCS so that I don't have to expose the ports to the world (I currently do this with another websocket system) and am running into issues where I can't go to host.domain.com (where 'host' is my host mapped to the 8444 endpoint). I have a host mapped to127.0.0.1 on port 8444 and am seeing this in the log files (IP addresses/host names obfuscated):
NOTE: I'm not actually using "host.domain.com", that's just here to obfuscate the real domain (it's not public yet)
[Thu May 21 20:09:34.616016 2020] [proxy_http:error] [pid 37956] (20014)Internal error (specific information not available): [client [remote ip]:60734] AH01102: error reading status line from remote server 127.0.0.1:8444
[Thu May 21 20:09:34.616063 2020] [proxy:error] [pid 37956] [client [remote ip]:60734] AH00898: Error reading from remote server returned by /
==> /var/log/apache2/videotest_access_ssl.log <==
[remote ip] - - [21/May/2020:20:09:34 +0000] "GET / HTTP/1.1" 502 4037 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
==> /var/log/apache2/videotest_error_ssl.log <==
[Thu May 21 20:09:35.088212 2020] [proxy_http:error] [pid 37956] (20014)Internal error (specific information not available): [client [remote ip]:60734] AH01102: error reading status line from remote server 127.0.0.1:8444, referer: https://host.domain.com/
==> /var/log/apache2/videotest_access_ssl.log <==
[remote ip] - - [21/May/2020:20:09:35 +0000] "GET /favicon.ico HTTP/1.1" 200 31 "https://host.domain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
==> /var/log/apache2/videotest_error_ssl.log <==
[Thu May 21 20:09:35.227801 2020] [proxy_http:error] [pid 37957] (20014)Internal error (specific information not available): [client [remote ip]:60741] AH01102: error reading status line from remote server 127.0.0.1:8444, referer: https://host.domain.com/
[Thu May 21 20:09:35.227843 2020] [proxy:error] [pid 37957] [client [remote ip]:60741] AH00898: Error reading from remote server returned by /favicon.ico, referer: https://host.domain.com/
==> /var/log/apache2/videotest_access_ssl.log <==
[remote ip] - - [21/May/2020:20:09:35 +0000] "GET /favicon.ico HTTP/1.1" 502 854 "https://host.domain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
My Apache config looks like (I have a redirect from 80 to 443 with a valid cert):
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
ErrorLog ${APACHE_LOG_DIR}/videotest_error_ssl.log
CustomLog ${APACHE_LOG_DIR}/videotest_access_ssl.log combined
ServerName host.domain.com
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://127.0.0.1:8444/
ProxyPassReverse / http://127.0.0.1:8444/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/host.domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/host.domain.com/privkey.pem
</VirtualHost>
I do not have any of the other ports setup via reverse proxy yet. My plan is to do those once I get the admin panel working. I can telnet to 8444 locally on the server, and the service seems to be running:
/etc/apache2/sites-available# service webcallserver status
● webcallserver.service - Flashphoner WebCallServer
Loaded: loaded (/etc/systemd/system/webcallserver.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-05-21 20:05:30 UTC; 19min ago
Process: 38395 ExecStop=/bin/bash webcallserver stop (code=exited, status=0/SUCCESS)
Main PID: 38503 (java)
CGroup: /system.slice/webcallserver.service
└─38503 java -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote
May 21 20:05:30 www.domain.com systemd[1]: Started Flashphoner WebCallServer.
May 21 20:05:33 www.domain.com bash[38455]: FlashphonerWebCallServer: starting
I only plan to ingest a WebRTC stream then relay it to a 3rd party RTMP service such as Youtube. Is WCS compatible with this setup or do I have to expose ports?
Thank you!
I'm trying WCS on Ubuntu 16.04 (I know 18.04 is recommended) and have verified my java install as well as glibc. I also received my trial license today.
I am setting up reverse proxy through apache to WCS so that I don't have to expose the ports to the world (I currently do this with another websocket system) and am running into issues where I can't go to host.domain.com (where 'host' is my host mapped to the 8444 endpoint). I have a host mapped to127.0.0.1 on port 8444 and am seeing this in the log files (IP addresses/host names obfuscated):
NOTE: I'm not actually using "host.domain.com", that's just here to obfuscate the real domain (it's not public yet)
[Thu May 21 20:09:34.616016 2020] [proxy_http:error] [pid 37956] (20014)Internal error (specific information not available): [client [remote ip]:60734] AH01102: error reading status line from remote server 127.0.0.1:8444
[Thu May 21 20:09:34.616063 2020] [proxy:error] [pid 37956] [client [remote ip]:60734] AH00898: Error reading from remote server returned by /
==> /var/log/apache2/videotest_access_ssl.log <==
[remote ip] - - [21/May/2020:20:09:34 +0000] "GET / HTTP/1.1" 502 4037 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
==> /var/log/apache2/videotest_error_ssl.log <==
[Thu May 21 20:09:35.088212 2020] [proxy_http:error] [pid 37956] (20014)Internal error (specific information not available): [client [remote ip]:60734] AH01102: error reading status line from remote server 127.0.0.1:8444, referer: https://host.domain.com/
==> /var/log/apache2/videotest_access_ssl.log <==
[remote ip] - - [21/May/2020:20:09:35 +0000] "GET /favicon.ico HTTP/1.1" 200 31 "https://host.domain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
==> /var/log/apache2/videotest_error_ssl.log <==
[Thu May 21 20:09:35.227801 2020] [proxy_http:error] [pid 37957] (20014)Internal error (specific information not available): [client [remote ip]:60741] AH01102: error reading status line from remote server 127.0.0.1:8444, referer: https://host.domain.com/
[Thu May 21 20:09:35.227843 2020] [proxy:error] [pid 37957] [client [remote ip]:60741] AH00898: Error reading from remote server returned by /favicon.ico, referer: https://host.domain.com/
==> /var/log/apache2/videotest_access_ssl.log <==
[remote ip] - - [21/May/2020:20:09:35 +0000] "GET /favicon.ico HTTP/1.1" 502 854 "https://host.domain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
My Apache config looks like (I have a redirect from 80 to 443 with a valid cert):
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
ErrorLog ${APACHE_LOG_DIR}/videotest_error_ssl.log
CustomLog ${APACHE_LOG_DIR}/videotest_access_ssl.log combined
ServerName host.domain.com
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://127.0.0.1:8444/
ProxyPassReverse / http://127.0.0.1:8444/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/host.domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/host.domain.com/privkey.pem
</VirtualHost>
I do not have any of the other ports setup via reverse proxy yet. My plan is to do those once I get the admin panel working. I can telnet to 8444 locally on the server, and the service seems to be running:
/etc/apache2/sites-available# service webcallserver status
● webcallserver.service - Flashphoner WebCallServer
Loaded: loaded (/etc/systemd/system/webcallserver.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-05-21 20:05:30 UTC; 19min ago
Process: 38395 ExecStop=/bin/bash webcallserver stop (code=exited, status=0/SUCCESS)
Main PID: 38503 (java)
CGroup: /system.slice/webcallserver.service
└─38503 java -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote
May 21 20:05:30 www.domain.com systemd[1]: Started Flashphoner WebCallServer.
May 21 20:05:33 www.domain.com bash[38455]: FlashphonerWebCallServer: starting
I only plan to ingest a WebRTC stream then relay it to a 3rd party RTMP service such as Youtube. Is WCS compatible with this setup or do I have to expose ports?
Thank you!