Skip to content

Dynmap with Apache httpd on Arch Linux

FedUpWith-Tech edited this page Aug 1, 2020 · 1 revision

This page assumes:

  • You have apache-httpd installed.
  • Your www-root directory to be: /srv/http/.
  • You could access your Dynmap-map succesfully through http://localhost:8123/.

This example shows how to put dynmap on your apache webserver in http://mywebserver/dynmap/.

  • To start, create the directory /srv/http/dynmap/.
  • Copy the contents of the web directory found in the zip to /srv/http/dynmap/.

In /etc/httpd/conf/httpd.conf, make sure you have the following (uncommented) lines. Note that they don't have to be adjacent:

    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule rewrite_module modules/mod_rewrite.so

Next, we must 'redirect' /dynmap/up/ and /dynmap/standalone to dynmap's internal webserver. To do this, add the following to the end of your /etc/httpd/conf/httpd.conf:

    ...
    Alias /dynmap/tiles /opt/minecraft_server/plugins/dynmap/web/tiles/

    RewriteEngine on
    RewriteRule /dynmap/up/(.*) http://localhost:8123/up/$1 [P,L]
    RewriteRule /dynmap/standalone/(.*) http://localhost:8123/standalone/$1 [P,L]

    <Directory /opt/minecraft_server/plugins/dynmap/web/tiles/>
        Order allow,deny
        Allow from all
    </Directory>

    <Proxy http://localhost:8123/*>
        Order deny,allow
        Allow from all
    </Proxy>

Note that this will apply for all virtualhosts. If you have multiple virtualhosts it is recommended to put the above lines inside it.

Restart apache/httpd (sudo /etc/rc.d/httpd restart)

It should now display online players on http://mywebserver/dynmap/, keeping them up-to-date.

Contents

Setup

Advanced Configuration

Mod Support

Developers

Clone this wiki locally