By elkdanger
I have a VPS (created from the Ubuntu 16.04 image) which I would like to use Dokku for some applications, and others that I would like to set up myself, all using Nginx. Is this possible?
I’m asking because I had configured Nginx to proxy to an internal app that I was running through Docker, and as soon as I installed Dokku, the app I had already set up became unreachable. I was hoping there was a way for the two systems to co-exist.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Just make new virtual host for your applications. You can use /etc/sites-aiviable/ to define ones and then link that file to /etc/sites-enabled
server {
include /etc/nginx/snippets/letsencrypt.conf;
location / {
return 301 https://server.techwares.eu$request_uri;
}
}
server {
listen 443 ssl;
# SSL configuration
ssl_certificate /etc/letsencrypt/live/server.techwares.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/server.techwares.eu/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/server.techwares.eu/fullchain.pem;
root /var/www/html3;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
# Redirect
server_name server.techwares.eu;
location / {
proxy_pass http://127.0.0.1:8001/;
}
}
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.