0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Dynmapでリバプロ(apacheもあるよ)

Posted at

Minecraftserverのdynmap_proxy_apache

初記事なのでお見苦しいところもあるかと思いますが温かい目でご覧ください

環境説明?
proxmoxの環境下でUbuntuserverを動かしてるのが私の環境です

んでapacheのこれで動かすと

/etc/apache2/mods-enabled/proxy.conf
ProxyRequests off
ProxyPass "/map" "http://192.168.2.113:8123/"
ProxyPassReverse "/map" "http://192.168.2.113:8123/

白画面で台パンしたくなりますよね
色々日本語でネットサーフィンしても対して解決しない
んでDuckDuckGoで英語だったら出てくるんじゃね?
ってことで調べたら
https://serverfault.com/questions/799012/dynmap-through-mod-proxy-on-a-external-webserver
こんなサイトがこれでもなぜかマップレンダリングはされず
ChatGPTに質問攻めして

/etc/apache2/mods-enabled/proxy.conf
ProxyRequests off

ProxyPass "/map"                "http://192.168.2.113:8123/"
ProxyPass "/js"                 "http://192.168.2.113:8123/js/"
ProxyPass "/js/minecraft"       "http://192.168.2.113:8123/js/minecraft/"
ProxyPass "/js/map"             "http://192.168.2.113:8123/js/map/"
ProxyPass "/css"                "http://192.168.2.113:8123/css/"
ProxyPass "/standalone"         "http://192.168.2.113:8123/standalone"
ProxyPass "/up/configuration"   "http://192.168.2.113:8123/up/configuration"
ProxyPass "/map/js/config.js"   "http://192.168.2.113:8123/js/config.js"
ProxyPass "/images" "http://192.168.2.113:8123/images"
ProxyPass "/images/map/tiles" "http://192.168.2.113:8123/images/map/tiles"
ProxyPass "/tiles" "http://192.168.2.113:8123/tiles"
ProxyPass "/version.js" "http://192.168.2.113:8123/version.js"
ProxyPass "/update" "http://192.168.2.113:8123/update"
ProxyPass "/up/configuration"   "http://192.168.2.113:8123/up/configuration"

ProxyPassReverse "/map"         "http://192.168.2.113:8123/"
ProxyPassReverse "/js"          "http://192.168.2.113:8123/js/"
ProxyPassReverse "/js/minecraft" "http://192.168.2.113:8123/js/minecraft/"
ProxyPassReverse "/js/map"      "http://192.168.2.113:8123/js/map/"
ProxyPassReverse "/css"         "http://192.168.2.113:8123/css/"
ProxyPassReverse "/standalone"  "http://192.168.2.113:8123/standalone"
ProxyPassReverse "/up/configuration" "http://192.168.2.113:8123/up/configuration"
ProxyPassReverse "/map/js/config.js" "http://192.168.2.113:8123/js/config.js"
ProxyPassReverse "/images" "http://192.168.2.113:8123/images"
ProxyPassReverse "/images/map/tiles" "http://192.168.2.113:8123/images/map/tiles"
ProxyPassReverse "/tiles" "http://192.168.2.113:8123/tiles"
ProxyPassReverse "/version.js" "http://192.168.2.113:8123/version.js"
ProxyPassReverse "/update" "http://192.168.2.113:8123/update"
ProxyPassReverse "/up/configuration"   "http://192.168.2.113:8123/up/configuration"

ここに辿り着いたけどこれでもなぜか自動更新されなくプレイヤーも表示されない
これじゃ使い勝手が悪いななんて思いながこれ以上が見つからず諦めてたところ
試しにnginxってリバプロ性能高いよなんて書いてあった
だけどずっとapacheを使ってたせいで抵抗感がすごくあったんだけど試しに使ったら動いた
https://qiita.com/yoidea/items/b514406e77b984e5d5c1
この方のを参考に(まるパクり)
でもapacheで組んでるから移行めんどっちいななんて思ってたら
試しにリバプロをリバプロすればっと思いつきためにやってみたらなんか動いちゃったので

/etc/apache2/mods-enabled/proxy.conf
ProxyRequests off

ProxyPass /map http://192.168.2.148/dynmap
ProxyPassReverse /map http://192.168.2.148/dynmap

こんなので動いっちゃった

メモ兼困ってる人用に残しておきます
それでは

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?