Help with Apache redirection

Discussion in 'Systems Administration' started by Justin393, Feb 16, 2021.

  1. I'm trying to make it so that when '/map' is appended to my domain it displays the dynmap.

    I have Apache configured correctly so it display stuff in /var/www/html and I also gave it permission to view /plugins/dynmap/web

    I set up a symbolic link from /plugins/dynmap/web -> /var/www/html/map

    And it renders the black page of the dynmap and changes the tab title to "Minecraft Dynamic Map", but never does anything else.

    What am I doing wrong here/ is there a better way to accomplish this?
    This is my first time using apache

    EDIT: here is my apache configuration:
    <Directory /var/www/>
        Options FollowSymLinks
        AllowOverride None
        Require all granted

    Alias "/map" "/home/justin/server/plugins/dynmap/web"
    <Directory "/home/justin/server/plugins/dynmap/web">
        Require all granted
    EDIT #2:

    Probably just going to give up on this and instead use dynmap in "external web server mode" and simply install the web server to /map. Probably a better idea than exposing the /dynmap folder to apache

    I'm still curious though if this is possible even though I won't be using this method anymore.
    #1 Justin393, Feb 16, 2021
    Last edited: Feb 16, 2021
  2. It's been years since I did this, but... Can't you just use Redirect permanent in the .htaccess file?
  3. You cannot make Apache execute the code that is located outside of the http root for security reasons. There are some tricks to make it possible but you are way better (and safer) just installing to /map.