Changes between Version 6 and Version 7 of server_installation


Ignore:
Timestamp:
Nov 20, 2015, 4:29:25 PM (10 years ago)
Author:
smoser
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • server_installation

    v6 v7  
    2525}}}
    2626
    27 Once that the server has started, it is available on http://localhost:8080/radar/. Note that the server is just listening on the local interface and not (yet) accessible over the network. This is for security reason.   
     27Note that the server is just listening on the local interface and is not (yet) accessible over the network. Once that the server has started you should be able to see the web interface on http://localhost:8080/radar.
     28
     29Choose the Station->Demo to start a demonstration session and verify that the server installation is working correctly.
     30
    2831
    2932==== Finish up the installation ====
    3033
     34We use an apache webserver as a reverse proxy to make the Flarmradar server available on the network. If not already done, install the Apache Webserver and enable the required modules
    3135
     36{{{
     37$ sudo -i apt-get install apache2
     38$ sudo -i a2enmod rewrite proxy_http
     39}}}
     40
     41Next we need to configure our reverse proxy. We want all requests for /radar and /rest to be directed to our Flarmradar server running on http://localhost:8080. Add the following stampa to your virtual host.
     42
     43{{{
     44    #
     45    # Rewrite Rules for Flarmradar
     46    #
     47    RewriteEngine On
     48
     49    RewriteLog /var/log/apache2/www.flarmradar.ch.rewrite.log
     50    RewriteLogLevel 0
     51    RewriteRule   ^/radar(.*)$    http://localhost:8080/radar$1  [P]
     52    RewriteRule   ^/rest(.*)$    http://localhost:8080/rest$1  [P]
     53
     54    ProxyRequests Off
     55    ProxyPassReverse /radar/ http://localhost:8080/radar/
     56    ProxyPassReverse /rest/ http://localhost:8080/rest/
     57}}}
     58
     59... and finally restart the webserver to read the new configuration
     60 
     61{{{
     62$ sudo -i service apache2 restart
     63}}}