By Huskerdoggo
Hello
Yesterday I installed the LAMP stack successfully with this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04. At the end of the tutorial they say that you should secure Apache with Let’s Encrypt but that only works if you have a domain and i don’t have one.
So my question is if there are other ways to secure Apache if you only use the public ip to connect to my website?
I have set up a basic ufw firewall.
Another question I have is: Is it safe to share the public ip so people can look at my site? I have looked at this question https://www.digitalocean.com/community/questions/is-there-a-risk-to-my-website-with-my-public-ip-address but would like a better confirmation that it is safe to share it.
P.S. I don’t really need a domain since I will mainly use the site as portfolio site to show to employers and for school.
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!
As I mentioned in that question, there is no risk. You can use a self-signed cert if you want SSL.
****Self sign the certificate
openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365
Run the command, by running this command two files are created cert.pem and key.pem , in this process it will ask few questions which are necessary to create certificate . Since we have passed days argument as 365, it is valid for another one year.
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.