2 Replies Latest reply: Feb 18, 2013 8:12 AM by CarphuntinGod RSS

    httpd.conf settings for multiple vhosts

    CarphuntinGod Community Member

      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.

        • 1. Re: httpd.conf settings for multiple vhosts
          seblbuk Community Member

          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>

          • 2. Re: httpd.conf settings for multiple vhosts
            CarphuntinGod Community Member

            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