Skip to main content
Known Participant
February 11, 2013
Question

httpd.conf settings for multiple vhosts

  • February 11, 2013
  • 1 reply
  • 759 views

If you configure multiple vhosts in your httpd.conf file, how do you specify different hds- and hls-live apps dirs in said httpd.conf file?

It appears these settings can only point at one location... and if your vhosts don't share an apps dir... I don't get how you could point to the correct location for individual vhosts.

    This topic has been closed for replies.

    1 reply

    Known Participant
    February 15, 2013

    Can you expand on this? I have tired to answer below

    LoadModule vhost_alias_module modules/mod_vhost_alias.so

    <VirtualHost *:8080>

              DocumentRoot "/dirlocal/apps/adobe/fms/webroot_8080"

    <IfModule hlshttp_module>

    <Location /hls-protected-1>

        HLSHttpStreamingEnabled true

        HLSMediaFileDuration 10000

        HttpStreamingContentPath "/dirremote/hls-8080/protected1"

        HLSFmsDirPath ".."

        Options -Indexes FollowSymLinks

    </Location>

     

    <Location /hls-protected-2>

        HLSHttpStreamingEnabled true

        HLSMediaFileDuration 10000

        HttpStreamingContentPath "/dirremote/hls-8080/protected2"

        HLSFmsDirPath ".."

        Options -Indexes FollowSymLinks

    </Location>

    </IfModule>

    <IfModule jithttp_module>

    <Location /hds-protected-1>

              HttpStreamingJITPEnabled true

              HttpStreamingContentPath "/dirremote/hds-8080/protected1"

              HttpStreamingJITConfAllowed false

              JitFmsDirPath ".."

              Options -Indexes FollowSymLinks

    </Location>

    <Location /hds-protected-2>

              HttpStreamingJITPEnabled true

              HttpStreamingContentPath "/dirremote/hds-8080/protected1"

              HttpStreamingJITConfAllowed false

              JitFmsDirPath ".."

              Options -Indexes FollowSymLinks

    </Location>

    </IfModule>

    </VirtualHost>

    <VirtualHost *:8181>

         DocumentRoot "/dirlocal/apps/adobe/fms/webroot_8181"

    <IfModule hlshttp_module>

    <Location /hls-protected-1>

        HLSHttpStreamingEnabled true

        HLSMediaFileDuration 10000

        HttpStreamingContentPath "/dirremote/hls-8181/protected1"

        HLSFmsDirPath ".."

        Options -Indexes FollowSymLinks

    </Location>

     

    <Location /hls-protected-2>

        HLSHttpStreamingEnabled true

        HLSMediaFileDuration 10000

        HttpStreamingContentPath "/dirremote/hls-8181/protected2"

        HLSFmsDirPath ".."

        Options -Indexes FollowSymLinks

    </Location>

    </IfModule>

    <IfModule jithttp_module>

    <Location /hds-protected-1>

      HttpStreamingJITPEnabled true

      HttpStreamingContentPath "/dirremote/hds-8181/protected1"

      HttpStreamingJITConfAllowed false

      JitFmsDirPath ".."

      Options -Indexes FollowSymLinks

    </Location>

    <Location /hds-protected-2>

      HttpStreamingJITPEnabled true

      HttpStreamingContentPath "/dirremote/hds-8181/protected1"

      HttpStreamingJITConfAllowed false

      JitFmsDirPath ".."

      Options -Indexes FollowSymLinks

    </Location>

    </IfModule>

    </VirtualHost>

    Known Participant
    February 18, 2013

    Thanks for the note, I'll have to study that and how it matches up to our configuration.

    I didn't know that if in any of the "fmsDirPath" statements would still work when you change the contentpath messages.  Or if you had to change from ".."   to an absolute ref to the fms install dir