Use per-application password files in Wowza Streaming Engine

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.
  1. Extract Authentication.xml from wms-server.jar in [install-dir]/lib and copy it to [install-dir]/conf.
  2. 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
  1. 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.
  2. 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>