forked from webbukkit/dynmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up Dynamic Map with Apache httpd under Arch Linux
FrozenCow edited this page Jan 16, 2011
·
9 revisions
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/.
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
:
...
Alias /dynmap/tiles /opt/minecraft_server/tiles
RewriteEngine on
RewriteRule /dynmap/up/(.*) http://localhost:8123/up/$1 [P,L]
<Directory /opt/minecraft_server/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.