You are here
Rico - Fri, 2021/03/26 - 23:25
I have a Turnkey core up and running in an LXC container to serve my InfluxDB, which works fine.
Now I would like the same machine to serve some simple static web pages.
What's the simplest way to achieve this?
I was thinking "if there is Webmin, then there is already some web server up and running - can't be too hard to get it to display some HTML files if you know what you're doing".
Since I am lacking in the "know what you're doing" department, I hope someone here can point me in the right direction :-)
Thanks in advance for your help!
Forum:
Tags:
No Core does not have a webserver.
There is no webserver. Webmin has it's own built-in server.
So if you only want to serve some simple HTML, then just install nginx, the "light" package will do fine:
Then IIRC, by default the doc root is /var/www/html.
If you need more, like PHP, DB etc, then I'd suggest installing our full LAMP stack - or our nginx-php-fastcgi appliance might be preferable?
Thinking about it, it seems
Thinking about it, it seems like wise idea to have a totally separate web server for webmin.
After reading a bit about the different nginx packages, I went for nginx-full and found that you rememered correctly - just put some files inside /var/www/html and it works :-)
(I do of course know about the larger Turnkey appliances, just wanted a very small thing without spinning up another container just for a handful of web pages).
Thanks for your hints that put me on the right track!
Add new comment