Problem configuring Subdomain for HTTP and HTTPS for Ant Media Server

219 views
Skip to first unread message

Paul

unread,
Apr 5, 2020, 4:28:14 PM4/5/20
to Ant Media Server
Sorry if this is more a server config question, but here goes:

I currently have a fresh Ant Media server install (community ed)

this resolves on port

http://myipaddress:5080 - and I can log on etc. 

Ideally I would like this to be on a subdomain on my server


and the secure version


My question is what the Vhosts configuration of my server should look like to support this?  What is the actual root directory of the server? 

I've guessed at this:

DocumentRoot /usr/local/antmedia/webapps

However at present my server returns a permissions error when loading in the browser. Not sure if I need to give permissions to this directory or if I'm pointing it to the completely wrong place.

any advice appreciated. 



        DocumentRoot /usr/local/antmedia/webapps


        ErrorLog ${APACHE_LOG_DIR}/error.log

        CustomLog ${APACHE_LOG_DIR}/access.log combined


        SSLEngine on

        SSLCertificateFile /home/paul/certs/STAR_MYCERT_com.crt

        SSLCertificateKeyFile /home/paul/certs/myCERT_.com.key

        SSLCACertificateFile /home/paul/certs/myCERT_com.ca-bundle




Paul

unread,
Apr 5, 2020, 5:47:45 PM4/5/20
to Ant Media Server
To further clarify. Subdomain resolves ok on the correct port. It just returns a 403 forbidden when the document root is pointed at 

DocumentRoot /usr/local/antmedia/webapps

Is this the right place for a VHosts entry to be pointed, and what permissions should I need for the ant media server to resolve. 

Murat Aydin

unread,
Apr 5, 2020, 5:51:37 PM4/5/20
to Paul, Ant Media Server
Hi Paul,


Best regards,


--
You received this message because you are subscribed to the Google Groups "Ant Media Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-serv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/4a4712ad-eccf-46ba-a8ce-eee06269784c%40googlegroups.com.


--
Murat AYDIN
------------------


Paul

unread,
Apr 5, 2020, 6:06:54 PM4/5/20
to Ant Media Server
Yep.- the SSL guide shown in the documentation assumes that I don't already have an SSL wildcard installed, and executing the SSL install script would potentially mess heavily with the existing server configuration.


I think I've managed to work it out. 

       <Directory "/usr/local/antmedia/webapps">

        Options FollowSymLinks

        AllowOverride None

        Require all granted

        </Directory>


</VirtualHost>





The above seemed to be required in my Virtual Hosts file. I am however now getting Java JSP tags printed to the browser - but that is possibly also a server misconfiguration somewhere.

Thank you for your help and responsiveness.


To unsubscribe from this group and stop receiving emails from it, send an email to ant-medi...@googlegroups.com.


--
Murat AYDIN
------------------


Reply all
Reply to author
Forward
0 new messages