Changes between Version 9 and Version 10 of Integrated Webserver


Ignore:
Timestamp:
Sep 8, 2014, 1:24:57 PM (10 years ago)
Author:
cynexit
Comment:

added a small paragraph about apache integration

Legend:

Unmodified
Added
Removed
Modified
  • Integrated Webserver

    v9 v10  
    1212  * (recommended) Get the files with a [http://en.wikipedia.org/wiki/Apache_Subversion SVN] client. This way you can easily update the files later on by just using the SVN update command. E.g. with a console client:
    1313{{{
    14 cd /path/to/7dtd/game/folder
     14cd /path/to/7dtd/game/folder  #default is /home/sdtd/engine
    1515svn co http://svn.illy.bz/7dtd/binary-improvements/webserver/
    1616}}}
     
    2929If it does the server was started on the given port. If not one of the above mentioned conditions is not met.
    3030
     31== apache and mod_proxy ==
     32If you already have a domain for your server and want a nice looking domain like 7dtd.example.com for your internal webserver instead of http://example.com:8082/ you can use apache and mod_proxy.
     33We will use apache and ubuntu to provide an example but any other web server or os may be used in a similar way. We will use "example.com" as our domain, please replace it with your own domain or IP address.
     34
     35Install apache2 (we assume you are logged in as root during this example) using either [https://help.ubuntu.com/14.04/serverguide/httpd.html the official documentation] or any other tutorial you find on the net. Basically just run
     36
     37{{{
     38apt-get install apache2
     39a2enmod proxy
     40a2enmod proxy_http
     41service apache2 restart
     42}}}
     43
     44create a new config
     45{{{
     46nano /etc/apache2/sites-availible/7dtd.example.com.conf
     47}}}
     48
     49and paste the following into it (assuming the ControlPanelPort is 8080)
     50{{{
     51<VirtualHost *:80>
     52        ServerName 7dtd.example.com
     53        ServerAdmin webmaster@example.com
     54
     55        ProxyPass / http://localhost:8082/
     56        ProxyPassReverse / http://localhost:8082/       
     57
     58        ErrorLog ${APACHE_LOG_DIR}/7dtd.example.com.error.log
     59        LogLevel warn
     60        CustomLog ${APACHE_LOG_DIR}/7dtd.example.com.access.log combined
     61</VirtualHost>
     62}}}
     63
     64now active the new config and restart apache
     65{{{
     66a2ensite 7dtd.example.com.conf
     67service apache2 restart
     68}}}
     69
     70You should now be able to visit 7dtd.example.com and see the map.
     71
     72'''Please note that this is _not_ a secure way to hide the ControlPanelPort from your users! Port scanning is always an option!
     73
     74
    3175== Planned stuff ==
    3276* List of players (filter by online, banned, admin/mod, permission level ... anything else?)