What is the best way to add my conf in Nginx ? Create a new conf ? Copy paste the project conf ? Can i use the same ssl certificate ? What command do i need to put in ?
save this file and use : ln -s /etc/nginx/sites-available/smallproject.com /etc/nginx/sites-enabled/
then : systemctl restart nginx
But it doesn’t work, when i try to go on smallproject.com, it’s automatically switching in https://smallproject.com and i can show insecure connection.
In fact, i start a website with Trellis/Bedrock/Sage with SSL and it’s works fine with https in a DO droplet production.
But today i need to add a small project (html/css/js at the moment) with a new domain name on the same droplet. So i added my domain name in DO on the same droplet ip and i tried to add a new conf file for Nginx (it’s my entire conf file yes) directly in my ssh Bitvise term, i dont touch my main (big) conf file generated by Trellis.
My new domain name was never used on my main wp project but i used it in an other trellis project (maybe with SSL, i don’t remember) for a test (deleted after).
Anyone has idea or a solution for that ? Or anyone knows how to use SSL in the same way or desactivate https for this non-wp site on production droplet ?