Skip to content

Dynmap with apache2 on Debian

JurgenKuyper edited this page Aug 11, 2022 · 2 revisions

This page assumes:

This example shows how to put dynmap on your apache2 webserver in http://mywebserverdomain.ext/ or https://mywebserverdomain.ext.

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

This guide will make your dynmap work using http or https.

To start, navigate to directory /var/www/.

Now, we need to enable the modules we need. Type in bash:

sudo a2enmod rewrite proxy_http

Next, we must reverse proxy to dynmap's internal webserver. To do this, make sure you have the following in /etc/apache2/sites-available/000-default.conf for non SSL use:

If you are using SSL, default should be your SSL configuration file. Lets Encrypt's file is 000-default-le-ssl.conf.

...

ProxyRequests off
ProxyPass / "http://localhost:8123/"
ProxyPassReverse / "http://localhost:8123/"
...

Restart apache2 (sudo systemctl restart apache2).

You should now be able to access dynmap with http://domainname.com/ or https://domainname.com

Contents

Setup

Advanced Configuration

Mod Support

Developers

Clone this wiki locally