By default, RTSP/RTP authentication (digest and basic) in Wowza Streaming Engine™ media server software is controlled by a single password file located at [install-dir]/conf/publish.password. If you want to have a separate publish.password file per application, you can do this by doing the following:
Important: This workflow is only recommended for advanced users and server administrators as maintenance of the Authentication.xml file extracted from wms-server.jar may be required.
- Extract Authentication.xml from wms-server.jar in [install-dir]/lib and copy it to [install-dir]/conf.
- Edit Authentication.xml and change the passwordFile property for the basic and digest authentication methods as follows:
From:
${com.wowza.wms.context.VHostConfigHome}/conf/publish.password
To:
${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/publish.password
- Each time you set up an application, create the file [install-dir]/conf/[application]/publish.password file to store the username and passwords for that application.
- For RTMP authentication, add this property to the <Properties> level container at the bottom of [install-dir]/conf/[application]/Application.xml. (Be sure to locate the correct <Properties> container; there are several in the file.)
<Property> <Name>rtmpEncoderAuthenticateFile</Name> <Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/publish.password</Value> </Property>