问题原文
原帖链接 · purplebird · CC BY-SA 4.0
I want to host an html page on a domain I have purchased. The html page is less than 20 lines of code. On the internet I find recommendations for certain solution stacks, like XAMPP or WAMP or LAMP, or mentions of wordpress. Is all this really necessary? What's the bare bones method that I could have an html page accessible through any browser in the world? I have a secondary laptop I'm willing to dedicate to the task. Searching is difficult as most results are tailored to entrepreneurs or those who need a full stack.
已采纳解答
原帖链接 · Brad · CC BY-SA 4.0
No, all of that is fortunately not necessary. :-)
You just need an HTTP server. Nginx is a good choice if you're hosting yourself. Its default configuration is all you need.
I do recommend though adding LetsEncrypt to get an HTTPS certificate for your server. It's free and automates via CertBot if you've installed Nginx (or other common web server).
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
