Configure NGINX to serve Dokuwiki Site

  1. You need an installed NGINX web server
  2. You need an installed Dokuwiki
  3. Configure the server to serve the Dokuwiki site:
    cat > /tmp/dokuwiki-proxy<< EOF
    server {
        listen 80;
     
        location / {
            proxy_pass http://127.0.0.1:8080;
        }
    }
    EOF
     
    sudo mv /tmp/dokuwiki-proxy /etc/nginx/sites-available/
     
    sudo ln -s /etc/nginx/sites-available/dokuwiki-proxy /etc/nginx/sites-enabled/dokuwiki-proxy
     
    sudo service nginx reload