Move Airtime web to other (web-)location
  • hi friends,
    I have installed Airtime on Ubuntu Server 11. For this server I have not accessible port 8080, therefore I have to use only 80 port (for web purpose).
    For default installation I have:
    1.) in file "/etc/apache2/sites-enabled/airtime" (or mirrored file "/etc/sites-available/airtime") following content:
    <VirtualHost *:80>
        ServerAdmin ...
        DocumentRoot /usr/share/airtime/public
        php_admin_value upload_tmp_dir /tmp
        <Directory usr/share/airtime/public>
            DirectoryIndex index.php
            AllowOverride all
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>
    2.) in file "/etc/airtime/airtime.conf" is following content:
    [database]
    host - localhost
    ...
    [rabbitmq]
    host = 127.0.0.1
    port = 5672
    ...
    vhost = /
    [general]
    api_key = ...
    web+server_user = www-data
    airtime_dir = /usr/share/airtime
    base+url = localhost
    base_port = 80
    ...
    3.) file "/etc/apache2/httpd.conf" is empty
    If I try from some PC following URL:
    http://218.76.65.129
    is displayed home page of "Airtime" web site.

    And now, I would like to change web-location for "Airtime" web pages to:
    http://218.76.65.129/Airtime
    (listen on the same port (80)), and base URL (http://218.76.65.129) remain to use for some other HTML page (or for some CMS system).

    Please how can I change setting for Airtime and (or) for Apache for this issue?

    PS: I try add row "ServerName Airtime" to file "/etc/apache2/sites-enabled/airtime", but it is not working. Again for base URL (http://218.76.65.129) is responsed "Airtime" (and for URL: http://218.76.65.129/Airtime, it is redirected to base URL (http://218.76.65.129) and displays "Airtime"page).

    Please help me.

    very thanks

  • 6 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team

    And now, I would like to change web-location for "Airtime" web pages to:
    http://218.76.65.129/Airtime

    it's impossible. Use personal host name in airtime vhost configuration: http://forum.sourcefabric.org/discussion/comment/16694#Comment_16694


  • @FredFlinstone,

    Why is port 8080 not available? Perhaps you can use some other port?
    Airtime Pro Hosting: http://airtime.pro
  • I have accessible only port 80. My provider was denied port 8080 for me :(
  • Reply to @Andrey+Podshivalov:
    hi Andrey,
    please help me for more details - my server has IP address 218.76.65.129, and has a domain "tudu-radio.com" (pointed to that IP).
    If I understand that I have to write down in file "/etc/apache2/sites-enabled/airtime" following row:

    ServerName airtime.tudu-radio.com


    and then restart Apache web server?

    Is neccessary some other changes for other apache file(s)?

    And then "Airtime" will be answer on address"
    http://airtime.tudu-radio.com
    and base address (http://tudu-radio.com, or http://www.tudu-radio.com) can to use for different HTML page(s)?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team

    And then "Airtime" will be answer on address"
    http://airtime.tudu-radio.com
    and base address (http://tudu-radio.com, or http://www.tudu-radio.com) can to use for different HTML page(s)?

    exactly
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    one more thing

    if you don't need to edit other airtime configs you should also add in vhost airtime file the string:
    ServerAlias localhost

    Post edited by Andrey Podshivalov at 2012-05-15 13:34:16