AirTime vHost
  • GERMAN:

    English on bottom!
    ====================

    Hallo,

    seit einigen Tagen stehe ich vor folgendem Problem:

    Ich möchte gerne die AirTime Vhost Konfiguration so Programmieren, dass AirTime NUR über eine bestimmte Domain und NUR über "https (also Port 443)" erreichbar ist. Ich habe die vHost Konfiguration schon folgendermaßen abgeändert, dass AirTime nur über "https" erreichbar ist. Leider kann ich AirTime noch über die Server-IP (https://00.000.00.00 <-- Beispiel) erreichen. Über "http://00.000.00.00" kann ich AirTime nicht mehr erreichen, das ist schon spitze.


    <VirtualHost airtime.radio-wolke7.de:443>

     SSLEngine on
     SSLCertificateFile /path/to/www_yoursite_com.crt
     SSLCertificateKeyFile /path/to/www_yoursite_com.key
     SSLCertificateChainFile /path/to/DigiCertCA.crt

          ServerName airtime.radio-wolke7.de
          #ServerAlias www.example.com

          ServerAdmin [MY-EMAIL]

          DocumentRoot /usr/share/airtime/public
          DirectoryIndex index.php

          SetEnv APPLICATION_ENV "production"

          <Directory /usr/share/airtime/public>
                  Options -Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Order allow,deny
                  Allow from all
          </Directory>
    </VirtualHost>

    Ich würde mich über eure Hilfe freuen.

    Mit freundlichem Gruß
    Björn

    =================

    ENGLISH:

    Hello,


    since a few days I am facing the following problem:

    I would like the AirTime vhost configuration to programming that AirTime ONLY be accessed via a specific domain and ONLY about "https (ie port 443)". I have already modified the vhost configuration follows that AirTime is only accessible via "https". Unfortunately, I can AirTime still on the server IP - reach (https://00.000.00.00 <example). About "http://00.000.00.00" I can no longer reach AirTime, that's great.

    <VirtualHost airtime.radio-wolke7.de:443>

     SSLEngine on
     SSLCertificateFile /path/to/www_yoursite_com.crt
     SSLCertificateKeyFile /path/to/www_yoursite_com.key
     SSLCertificateChainFile /path/to/DigiCertCA.crt

          ServerName airtime.radio-wolke7.de
          #ServerAlias www.example.com

          ServerAdmin [MY-EMAIL]

          DocumentRoot /usr/share/airtime/public
          DirectoryIndex index.php

          SetEnv APPLICATION_ENV "production"

          <Directory /usr/share/airtime/public>
                  Options -Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Order allow,deny
                  Allow from all
          </Directory>
    </VirtualHost>


    I would appreciate your help.

    Sincerely,
    Björn
  • 7 Comments sorted by
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    Hi Björn,
    damit andere User das auch lesen können, antworte ich auf englisch.

    If
    you enable https you will need to leave http running as well for the
    services such as media-monitor to continue running on port 80. - See
    more at:
    http://forum.sourcefabric.org/discussion/comment/20050#sthash.GoxCPwE8.dpuf

    see martins comment here http://forum.sourcefabric.org/discussion/comment/20050
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • I had an idea but it wont work so i deleted it. Sorry.

    Post edited by John Chewter at 2013-12-13 08:29:36
    No longer using Airtime or Libretime.
  • hello, many thanks for your reply . I have now solved AirTime can now be achieved only over a certain domain and only over https . here's my vhost conf

    NameVirtualHost MYIP:443

    <VirtualHost
    MYIP:443>

            SSLEngine on

            SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
            SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

    DocumentRoot /var/www

    </VirtualHost>


    <VirtualHost
    MYIP:443>

            SSLEngine on

            SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
            SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

          ServerName SUB.MYDOMAIN.tld

          ServerAdmin MYMAIL

          DocumentRoot /usr/share/airtime/public
          DirectoryIndex index.php

          SetEnv APPLICATION_ENV "production"

          <Directory /usr/share/airtime/public>
                  Options -Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Order allow,deny
                  Allow from all
          </Directory>
    </VirtualHost>



    Unfortunately, I now have another problem- . I now use the above vhost . Now I have added a new stream , with the airtime should connect to. no longer makes this airtime though. I change the vhost conf again in the standart configuration , it works beautifully.

    I have the file " / etc / airtime / airtime.conf " edited and modified this ZIP entry :

    base_url = SUB.MYDOMAIN.tld
    base_port = 443

    Original .

    base_url = SUB.MYDOMAIN.tld
    base_port = 80

    I have left the port to 443 and the standart vhost recorded works . even if I go back to port 80 . but I'll take my https vhost and change the base_port to 443 connects airtime not suitable for stream server. there is always the message " get information from server " . should normally there are " connected to the stream server" or something similar.

    Does anyone know this problem. I still have somewhere else to change port from 80 to 443 ?

    please excuse my bad english, translated with google translate

    With friendly greetings
    björn
    Post edited by Björn End at 2013-12-13 09:19:12
  • in httaccess
    No longer using Airtime or Libretime.
  • Hey,

    what does that have to do with the htaccess? I have now changed the port in / etc / airtime / in the configurationen the host and .... now I'm apparently on the right track.

    I have times with:
    / usr / lib / airtime / utils / airtime-check-system

    a system check performed. I see that airtime please try the following:

    AIRTIME_STATUS_URL             = http://SUB.MYDOMAIN.tld:443/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = UNKNOWN
    MACHINE_ARCHITECTURE           = UNKNOWN
    TOTAL_MEMORY_MBYTES            = UNKNOWN
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = UNKNOWN
    OS                             = Debian GNU/Linux 7.2 (wheezy) i686
    CPU                            = Quad-Core AMD Opteron(tm) Processor 2347 HE
    WEB_SERVER                     = UNKNOWN
    PLAYOUT_ENGINE_PROCESS_ID      = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC        = 0%
    PLAYOUT_ENGINE_CPU_PERC        = 0%


    He tried something with the url:
    http://
    SUB.MYDOMAIN.tld:443/api/status/format/json/api_key/%% api_key%%

    to make. But this will not work, this he has to do with https. does anyone know if this is written in the source code or in any configuration?

    Sincerely,
    Björn

    Post edited by Björn End at 2013-12-13 10:13:51
  • You can reroute any calls to port 80 to 443 - would this not help?

    Post edited by John Chewter at 2013-12-13 11:41:30
    No longer using Airtime or Libretime.
  • Hey, that was the super helpful tip. All requests from users are automatically routed to the vhost over https, but the server itself must continue over http (port 80) to work.

    IMPORTANT ... in / etc / airtime / necessary to change the host name. I had to do this because I only access via a specific domain would have to airtime.

    I will later post an example VHOST.

    Thank you!

    greeting
    Björn