Thursday, January 27, 2022

How To Ant Media Server With Apache On Ubuntu 20.04 LTS

 in This Tutorial you will learn " How To Ant Media Server With Apache web server On Ubuntu 20.04 LTS"
Ant Media Server is a media streaming server with WebRTC support.
Offcial website - https://antmedia.io/
__________________________________________________________________________________________
lsb_release -d ; hostname -I ; hostname
cd /usr/local/src
wget https://github.com/ant-media/Ant-Media-Server/releases/download/ams-v2.0.0/ant-media-server-2.0.0-community-2.0.0-20200504_1842.zip
wget https://raw.githubusercontent.com/ant-media/Scripts/master/install_ant-media-server.sh
chmod 755 install_ant-media-server.sh
./install_ant-media-server.sh ant-media-server-2.0.0-community-2.0.0-20200504_1842.zip
systemctl restart antmedia ; systemctl status antmedia

apt update ; apt install apache2 -y
a2enmod proxy proxy_http
nano  /etc/apache2/sites-available/antmedia.conf
<VirtualHost *:80>
    #Domain Name
    ServerName antmedia.com
    ServerAlias www.antmedia.com

    #HTTP proxy/gateway server
    ProxyRequests off
    ProxyPass / http://127.0.0.1:5080/
    ProxyPassReverse / http:/127.0.0.1:5080/     
</VirtualHost>
a2dissite 000-default.conf ; a2ensite antmedia.conf
apache2ctl configtest
systemctl daemon-reload ; systemctl reload apache2
echo "192.168.1.80 www.antmedia.com"  >> /etc/hosts
http://www.antmedia.com  | Username- admin/password
________________________________________________________________________________________

No comments:

Post a Comment