Results 1 to 8 of 8

Thread: Wowza and apache on same machine with 2 ip

  1. #1
    Join Date
    Jul 2011
    Posts
    12

    Default Wowza and apache on same machine with 2 ip

    Hello,

    Today i tried to add a second ip to my wowza development server. THe reason for that was to allow apache use one ip and port 80, and allow wowza media server to use another ip and be able to use ports 80 and 443 additionally to554, 1935 and all the rest of udpports.

    I did some changes to vhost.xml, server.xml

    I now try to access http administration commands and they dont work.

    What is the procedure i should follow to correctly do configuration from scratch using 2 ips

    Thank you in advance

    Regards

    Dinos

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    What changes did you make to the VHost.xml and Server.xml?
    If you can get the VHost.xml and Server.xml back to how they were configured before the recent changes we can start from scratch.

    When the VHost.xml and Server.xml are back in working condition, (before the recent changes)
    Edit the VHost.xml with the following changes,
    <IpAddress>*</IpAddress> (replace the * with the [Server-IP] you want to listen to).

    Jason

  3. #3
    Join Date
    Jul 2011
    Posts
    12

    Default

    Well, this is what i was looking for. Where can i get a fresh version of the config files.

    Thank you

    Regards
    DInos

  4. #4
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Original VHost.xml for Wowza 3
    <Root>
            <VHost>
                    <HostPortList>
                            <HostPort>
                                    <ProcessorCount>2</ProcessorCount>
                                    <IpAddress>*</IpAddress>
                                    <!-- Separate multiple ports with commas -->
                                    <!-- 80: HTTP, RTMPT -->
                                    <!-- 554: RTSP -->
                                    <Port>1935</Port>
                                    <SocketConfiguration>
                                            <ReuseAddress>true</ReuseAddress>
                                            <!-- suggested settings for video on demand applications -->
                                            <ReceiveBufferSize>24000</ReceiveBufferSize>
                                            <SendBufferSize>65000</SendBufferSize>
                                            <!-- suggest settings for low latency chat and video recording applications
                                            <ReceiveBufferSize>16000</ReceiveBufferSize>
                                            <SendBufferSize>16000</SendBufferSize>
                                            -->
                                            <KeepAlive>true</KeepAlive>
                                            <!-- <TrafficClass>0</TrafficClass> -->
                                            <!-- <OobInline>false</OobInline> -->
                                            <!-- <SoLingerTime>-1</SoLingerTime> -->
                                            <!-- <TcpNoDelay>false</TcpNoDelay> -->
                                            <AcceptorBackLog>100</AcceptorBackLog>
                                    </SocketConfiguration>
                                    <HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstrea
    ming</HTTPStreamerAdapterIDs>
                                    <HTTPProviders>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
                                                    <RequestFilters>*crossdomain.xml</RequestFilters>
                                                    <AuthenticationMethod>none</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
                                                    <RequestFilters>*clientaccesspolicy.xml</RequestFilters>
                                                    <AuthenticationMethod>none</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
                                                    <RequestFilters>*</RequestFilters>
                                                    <AuthenticationMethod>none</AuthenticationMethod>
                                            </HTTPProvider>
                                    </HTTPProviders>
                            </HostPort>
    
                            <!-- 443 with SSL -->
                            <!--
                            <HostPort>
                                    <ProcessorCount>4</ProcessorCount>
                                    <IpAddress>*</IpAddress>
                                    <Port>443</Port>
                                    <SSLConfig>
                                            <KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/keystore.cert</KeySto
    rePath>
                                            <KeyStorePassword>[password]</KeyStorePassword>
                                            <KeyStoreType>JKS</KeyStoreType>
                                            <SSLProtocol>TLS</SSLProtocol>
                                            <Algorithm>SunX509</Algorithm>
                                            <CipherSuites></CipherSuites>
                                            <Protocols></Protocols>
                                    </SSLConfig>
                                    <SocketConfiguration>
                                            <ReuseAddress>true</ReuseAddress>
                                            <ReceiveBufferSize>24000</ReceiveBufferSize>
                                            <SendBufferSize>65000</SendBufferSize>
                                            <KeepAlive>true</KeepAlive>
                                            <AcceptorBackLog>100</AcceptorBackLog>
                                    </SocketConfiguration>
                                    <HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstrea
    ming</HTTPStreamerAdapterIDs>
                                    <HTTPProviders>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
                                                    <RequestFilters>*clientaccesspolicy.xml</RequestFilters>
                                                    <AuthenticationMethod>none</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
                                                    <RequestFilters>*crossdomain.xml</RequestFilters>
                                                    <AuthenticationMethod>none</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
                                                    <RequestFilters>*</RequestFilters>
                                                    <AuthenticationMethod>none</AuthenticationMethod>
                                            </HTTPProvider>
                                    </HTTPProviders>
                            </HostPort>
                            -->
    
                            <!-- Admin HostPort -->
                            <HostPort>
                                    <ProcessorCount>1</ProcessorCount>
                                    <IpAddress>*</IpAddress>
                                    <Port>8086</Port>
                                    <SocketConfiguration>
                                            <ReuseAddress>true</ReuseAddress>
                                            <ReceiveBufferSize>16000</ReceiveBufferSize>
                                            <SendBufferSize>16000</SendBufferSize>
                                            <KeepAlive>true</KeepAlive>
                                            <AcceptorBackLog>100</AcceptorBackLog>
                                    </SocketConfiguration>
                                    <HTTPStreamerAdapterIDs></HTTPStreamerAdapterIDs>
                                    <HTTPProviders>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.streammanager.HTTPStreamManager</BaseClass>
    
                                                    <RequestFilters>streammanager*</RequestFilters>
                                                    <AuthenticationMethod>admin-digest</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPServerInfoXML</BaseClass>
                                                    <RequestFilters>serverinfo*</RequestFilters>
                                                    <AuthenticationMethod>admin-digest</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPConnectionInfo</BaseClass>
                                                    <RequestFilters>connectioninfo*</RequestFilters>
                                                    <AuthenticationMethod>admin-digest</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPConnectionCountsXML</BaseClass>
                                                    <RequestFilters>connectioncounts*</RequestFilters>
                                                    <AuthenticationMethod>admin-digest</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail<
    /BaseClass>
                                                    <RequestFilters>transcoderthumbnail*</RequestFilters>
                                                    <AuthenticationMethod>admin-digest</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
                                                    <RequestFilters>medialist*</RequestFilters>
                                                    <AuthenticationMethod>admin-digest</AuthenticationMethod>
                                            </HTTPProvider>
                                            <HTTPProvider>
                                                    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
                                                    <RequestFilters>*</RequestFilters>
                                                    <AuthenticationMethod>none</AuthenticationMethod>
                                            </HTTPProvider>
                                    </HTTPProviders>
                            </HostPort>
    
                    </HostPortList>
    
                    <HTTPStreamerAdapters>
                            <HTTPStreamerAdapter>
                                    <ID>smoothstreaming</ID>
                                    <Name>smoothstreaming</Name>
                                    <Properties>
                                    </Properties>
                            </HTTPStreamerAdapter>
                            <HTTPStreamerAdapter>
                                    <ID>cupertinostreaming</ID>
                                    <Name>cupertinostreaming</Name>
                                    <Properties>
                                    </Properties>
                            </HTTPStreamerAdapter>
                            <HTTPStreamerAdapter>
                                    <ID>sanjosestreaming</ID>
                                    <Name>sanjosestreaming</Name>
                                    <Properties>
                                    </Properties>
                            </HTTPStreamerAdapter>
                            <HTTPStreamerAdapter>
                                    <ID>dvrchunkstreaming</ID>
                                    <Name>dvrchunkstreaming</Name>
                                    <Properties>
                                    </Properties>
                            </HTTPStreamerAdapter>
                    </HTTPStreamerAdapters>
    
                    <HandlerThreadPool>
                            <PoolSize>60</PoolSize>
                    </HandlerThreadPool>
                    <TransportThreadPool>
                            <PoolSize>40</PoolSize>
                    </TransportThreadPool>
                    <IdleWorkers>
                            <WorkerCount>2</WorkerCount>
                            <CheckFrequency>50</CheckFrequency>
                            <MinimumWaitTime>5</MinimumWaitTime>
                    </IdleWorkers>
                    <NetConnections>
                            <ProcessorCount>2</ProcessorCount>
                            <IdleFrequency>250</IdleFrequency>
                            <SocketConfiguration>
                                    <ReuseAddress>true</ReuseAddress>
                                    <ReceiveBufferSize>65000</ReceiveBufferSize>
                                    <SendBufferSize>24000</SendBufferSize>
                                    <KeepAlive>true</KeepAlive>
                                    <!-- <TrafficClass>0</TrafficClass> -->
                                    <!-- <OobInline>false</OobInline> -->
                                    <!-- <SoLingerTime>-1</SoLingerTime> -->
                                    <!-- <TcpNoDelay>false</TcpNoDelay> -->
                                    <AcceptorBackLog>100</AcceptorBackLog>
                            </SocketConfiguration>
                    </NetConnections>
                    <HTTPTunnel>
                            <KeepAliveTimeout>2000</KeepAliveTimeout>
                    </HTTPTunnel>
                    <Client>
                            <ClientTimeout>90000</ClientTimeout>
                            <IdleFrequency>250</IdleFrequency>
                    </Client>
                    <!-- RTP/Authentication/Methods defined in Authentication.xml. Default setup includes; none, basic, diges
    t -->
                    <RTP>
                            <IdleFrequency>75</IdleFrequency>
                            <DatagramConfiguration>
                                    <Incoming>
                                            <ReuseAddress>true</ReuseAddress>
                                            <ReceiveBufferSize>1024000</ReceiveBufferSize>
                                            <SendBufferSize>65000</SendBufferSize>
                                            <!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
                                            <!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
                                            <!-- <TrafficClass>0</TrafficClass> -->
                                            <MulticastTimeout>50</MulticastTimeout>
                                            <DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
                                    </Incoming>
                                    <Outgoing>
                                            <ReuseAddress>true</ReuseAddress>
                                            <ReceiveBufferSize>65000</ReceiveBufferSize>
                                            <SendBufferSize>65000</SendBufferSize>
                                            <!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
                                            <!-- <MulticastInterfaceAddress>192.168.1.22</MulticastInterfaceAddress> -->
                                            <!-- <TrafficClass>0</TrafficClass> -->
                                            <MulticastTimeout>50</MulticastTimeout>
                                            <DatagramMaximumPacketSize>4096</DatagramMaximumPacketSize>
                                    </Outgoing>
                            </DatagramConfiguration>
                            <UnicastIncoming>
                                    <ProcessorCount>1</ProcessorCount>
                            </UnicastIncoming>
                            <UnicastOutgoing>
                                    <ProcessorCount>2</ProcessorCount>
                            </UnicastOutgoing>
                            <MulticastIncoming>
                                    <ProcessorCount>1</ProcessorCount>
                            </MulticastIncoming>
                            <MulticastOutgoing>
                                    <ProcessorCount>1</ProcessorCount>
                            </MulticastOutgoing>
                    </RTP>
                    <Application>
                            <ApplicationTimeout>60000</ApplicationTimeout>
                            <PingTimeout>12000</PingTimeout>
                            <ValidationFrequency>20000</ValidationFrequency>
                            <MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
                            <MaximumSetBufferTime>60000</MaximumSetBufferTime>
                    </Application>
                    <StartStartupStreams>true</StartStartupStreams>
                    <!-- Properties defined here will be added to the IVHost.getProperties() collection -->
                    <Properties>
                    </Properties>
            </VHost>
    </Root>
    Jason

  5. #5
    Join Date
    Jul 2011
    Posts
    12

    Default

    Hello Jason and thank you for posting up the conf file.

    I finally uninstalled 3.0.2 version and installed from scratch 3.0.3 version. I change the ip as instructed in vhost.xml.
    I am using 2 ips XX.XX.XX.118 for wowza and XX.XX.XX.119 for apache

    When server starts i see it binds on XX.XX.XX.118 as expected.

    Doing netstat on the server when trying to see a video, i see that rtsp over tcp is on XX.XX.XX.118, but udp posrts appear on XX.XX.XX.119 and i believe they shouldnt. I believe this is the reason why rtsp is broken.

    I tried to add ip XX.XX.XX.118 in Application.xml in the following sections

    <RTSPBindIpAddress>XX.XX.XX.118</RTSPBindIpAddress>
    <RTSPConnectionIpAddress>XX.XX.XX.118</RTSPConnectionIpAddress>
    <RTSPOriginIpAddress>XX.XX.XX.118</RTSPOriginIpAddress>

    tcp 0 0 XX.XX.XX.118:ssh isp.static.aaanet.:55165 ESTABLISHED
    tcp 0 0 XX.XX.XX.118:rtsp isp.static.aaanet.:35884 ESTABLISHED
    tcp 0 0 XX.XX.XX.118:ssh isp.static.aaanet.:55188 ESTABLISHED
    tcp 0 268 XX.XX.XX.118:ssh isp.static.aaanet.:56353 ESTABLISHED
    udp 0 0 XX.XX.XX.119:6970 isp.static.aaa:10274 ESTABLISHED
    udp 0 0 XX.XX.XX.119:6971 isp.static.aaa:10275 ESTABLISHED
    udp 0 0 XX.XX.XX.119:6972 isp.static.aaa:10276 ESTABLISHED
    udp 0 0 XX.XX.XX.119:6973 isp.static.aaa:10277 ESTABLISHED


    I did all the above just to free up port 80 as i need apache to run on the same server. Is port 80 actually needed for Wowza media server at the end of the day?

    Thank you

    Regards

    Dinos

  6. #6
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    No, you don't need port 80 for Wowza to work.
    It can help when clients are behind a fire wall on port 1935 and in other situations but its not essential.

    Jason

  7. #7

    Default

    Hi Dinos,

    As Jason suggested, you would usually only use port 80 for Wowza streaming when there is some firewall blocking the standard streaming ports. If this is not the case for you, do you really need two IPs?

    So, your RTSP streaming is broken now, but it worked before you went to two IPs? Any error messages in Wowza? Maybe you could do a "netstat -b" for me. Or, if you don't need the two IPs you could switch back to one and be done.

  8. #8
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    "netstat -b" if you're running Wowza on a Windows server or
    "netstat -a" if you're running Wowza on a Linux server.

    Jason

Similar Threads

  1. H264 Streaming Module for Apache and Wowza 3
    By hdnetmidia in forum General Forum
    Replies: 4
    Last Post: 12-04-2012, 11:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •