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