-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up Dynamic Map with Apache httpd under Arch Linux
This page assumes your root directory of your webserver is found at /srv/http/
, that you have apache/httpd installed and that your apache/httpd configuration is at /etc/httpd/conf/httpd.conf
. This all depends on your distribution and installation.
This example shows how to put dynmap on your apache webserver in http://mywebserver/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/
to dynmap's internal webserver. To do this, add the following to the end of your /etc/httpd/conf/httpd.conf
:
...
RewriteEngine on
RewriteRule /dynmap/up/(.*) http://localhost:8123/$1 [P,L]
<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
It should now display online players on http://mywebserver/dynmap/, keeping them up-to-date.