I wanted to host a couple of websites (and apps) on the same VPS, so my idea was to have it like this:
Site 1
So I thought I would start with Apache. I installed Apache, configured it to work with my domain (an actual one, not from hosts) and it loaded the basic HTML page. Before I did this, I tested my-domain.com:8080 and it showed the Apache Admin page, all fine. Unfortunately, now after adding my first VirtualHost (and deleting the default one), my Admin page is not accessible anymore (getting a timeout). I also used Let’s Encrypt to test how SSL works.
The current state of sites-enabled:
000-default: NOT ENABLED, doesn’t work even if enabled my-domain.com: ENABLED, working with SSL, redirects to SSL by default my-domain2-from-hosts-file: ENABLED, not working, redirects to the default domain
Ideally, I’d like to have a different VirtualHost/domain for each WAR deployed, but let’s get the admin/manager page working first.
What could I be doing wrong? I can post logs and config if needed.
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!
Accepted Answer
Turns out firewall was the one to blame. Port 8080 became blocked after I added Let’s Encrypt SSL using their script, so… that’s weird.
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.