It’s time for me to get a website up and I need help to do things right ! First I’d like to set up a test site accessible by secure and not secure connections (i.e. https and http). I’ve been running my web apps (Drupal, NextCloud, phpMyAdmin) under /srv/www/htdocs for some time now so I have the basics figured out. Just never created a virtual host and never a secure url.
If someone can give me a step by step approach to this I’d be quite appreciative.
Everything is up to date as of today (sudo zypper update)…
P.S. I’ll buy a domain name and change the url from something-secret.site to something-secret.com and open firewall to outside world when I’m comfortable with my setup… Of course I’m not really using something-secret.site but that’s the form I’m using, that is to say xxxx-xxxx.site with a dash between the first and second word…
If you’re now considering moving your website from development to Production, you should consider also moving from TW to LEAP for better stability.
Depending on your website, you may also want to keep a development > staging > production infrastructure for continuing support and maintenance of the website.
Tools like the YaST http-server module can help setting up your virtual server consistently.
You didn’t mention MySQL/MariaDB, if your website uses a database, be sure to set up and configure fault tolerance and maintenance/support policies.
When you’re ready to get a SSL certificate for your website, start by selecting a CA service, then look for the page that describes that service’s procedure for creating and submitting a CSR. It might be complete or partial, but it’s a starting point.
After setting up the above,
If you have further questions about specific things, go ahead and post.